GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions field. by iritkatriel · Pull Request #119364 · python/cpython Conversation
|
| Column information is 0-indexed utf-8 byte offsets on the given source | ||
| line. | ||
| position of the source code that compiled to the *i-th* code unit. A | ||
| code unit is either a bytecode instruction or a cache entry of an |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
To be pedantic, cache entries can span several code units, as can the instruction if the EXTENDED_ARG prefix is included.
Maybe just use "code unit" here, and explain the instruction format elsewhere (in another PR)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12, 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…co_positions field. (pythonGH-119364) (cherry picked from commit 015b1fd) Co-authored-by: Irit Katriel <[email protected]>
…co_positions field. (pythonGH-119364) (cherry picked from commit 015b1fd) Co-authored-by: Irit Katriel <[email protected]>
|
GH-119869 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…co_positions field. (pythonGH-119364) (cherry picked from commit 015b1fd) Co-authored-by: Irit Katriel <[email protected]>
|
GH-119870 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-119871 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…co_positions field. (python#119364)
… co_positions field. (GH-119364) (#119871) (cherry picked from commit 015b1fd) Co-authored-by: Irit Katriel <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
code.co_positions behaviour does not match documentation
There was an error while loading. Please reload this page.