Issue 26985: Information about CodeType in inspect documentation is outdated (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/71172
classification
Title: | Information about CodeType in inspect documentation is outdated | ||
---|---|---|---|
Type: | Stage: | resolved | |
Components: | Documentation | Versions: | Python 3.7, Python 3.6, Python 3.5 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | docs@python | Nosy List: | berker.peksag, docs@python, xiang.zhang |
Priority: | normal | Keywords: | patch |
Created on 2016-05-09 14:11 by xiang.zhang, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
inspect_doc.patch | xiang.zhang,2016-05-10 03:09 | review |
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 1090 | merged | xiang.zhang,2017-04-12 10:16 | |
PR 1099 | merged | xiang.zhang,2017-04-13 02:53 | |
PR 1100 | merged | xiang.zhang,2017-04-13 02:53 |
Messages (9) | ||
---|---|---|
msg265197 - (view) | Author: Xiang Zhang (xiang.zhang) * ![]() |
Date: 2016-05-09 14:11 |
Information about CodeType in inspect documentation is outdated. It lacks attributes: co_kwonlyargcount, co_freevars, co_cellvars. And co_flags lacks many more options. These also apply to the comments of inspect.iscode source code. | ||
msg265222 - (view) | Author: Xiang Zhang (xiang.zhang) * ![]() |
Date: 2016-05-10 03:09 |
Attach patch. | ||
msg267841 - (view) | Author: Berker Peksag (berker.peksag) * ![]() |
Date: 2016-06-08 12:06 |
I prefer to not duplicate the list in Lib/inspect.py. We did similar docstring cleanups in several modules (venv for example) recently. | ||
msg268030 - (view) | Author: Xiang Zhang (xiang.zhang) * ![]() |
Date: 2016-06-09 15:19 |
So maybe remove the docstring entirely? | ||
msg268033 - (view) | Author: Berker Peksag (berker.peksag) * ![]() |
Date: 2016-06-09 15:41 |
"Return true if the object is a code object." should stay. We can add a short sentence to refer people to the inspect documentation for the list of co_* attributes. | ||
msg268672 - (view) | Author: Xiang Zhang (xiang.zhang) * ![]() |
Date: 2016-06-16 15:10 |
Hmm, when I am going to delete the list in the docstring, I find other functions get lists too in inspect.py. So maybe we should open another issue to clean them after first merging this thread? | ||
msg291581 - (view) | Author: Xiang Zhang (xiang.zhang) * ![]() |
Date: 2017-04-13 02:38 |
New changeset a6902e662c18dc837d40664eaafe50a44aae6366 by Xiang Zhang in branch 'master': bpo-26985: Add missing info of code object in inspect documentation (GH-1090) https://github.com/python/cpython/commit/a6902e662c18dc837d40664eaafe50a44aae6366 | ||
msg291586 - (view) | Author: Xiang Zhang (xiang.zhang) * ![]() |
Date: 2017-04-13 03:14 |
New changeset 14944c62300f741488c2f28cb91ad1e3fef7343b by Xiang Zhang in branch '3.6': bpo-26985: Add missing info of code object in inspect documentation (GH-1090) (GH-1099) https://github.com/python/cpython/commit/14944c62300f741488c2f28cb91ad1e3fef7343b | ||
msg291588 - (view) | Author: Xiang Zhang (xiang.zhang) * ![]() |
Date: 2017-04-13 03:37 |
New changeset 72b1d419ac5f7cd9ef82ffd2ffe21aa9b34e21d2 by Xiang Zhang in branch '3.5': bpo-26985: Add missing info of code object in inspect documentation (GH-1090) (GH-1100) https://github.com/python/cpython/commit/72b1d419ac5f7cd9ef82ffd2ffe21aa9b34e21d2 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:30 | admin | set | github: 71172 |
2017-04-13 03:38:14 | xiang.zhang | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2017-04-13 03:37:40 | xiang.zhang | set | messages: + |
2017-04-13 03:14:19 | xiang.zhang | set | messages: + |
2017-04-13 02:53:55 | xiang.zhang | set | pull_requests: + <pull%5Frequest1243> |
2017-04-13 02:53:13 | xiang.zhang | set | pull_requests: + <pull%5Frequest1242> |
2017-04-13 02:38:30 | xiang.zhang | set | messages: + |
2017-04-12 10:16:47 | xiang.zhang | set | pull_requests: + <pull%5Frequest1233> |
2017-04-12 03:52:33 | xiang.zhang | set | type: behavior -> versions: + Python 3.7 |
2017-04-11 08:27:16 | martin.panter | link | issue30037 superseder |
2016-06-16 15:10:32 | xiang.zhang | set | messages: + |
2016-06-09 15:41:05 | berker.peksag | set | messages: + |
2016-06-09 15:19:27 | xiang.zhang | set | messages: + |
2016-06-08 12:06:39 | berker.peksag | set | versions: + Python 3.5nosy: + berker.peksagmessages: + type: behaviorstage: patch review |
2016-05-10 03:09:39 | xiang.zhang | set | files: + inspect_doc.patchkeywords: + patchmessages: + |
2016-05-09 14:11:42 | xiang.zhang | create |