Uh oh!
There was an error while loading. Please reload this page.
Document the co_lines method on code objects - #113682
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AlexWaygood
commented
Jan 3, 2024
It looks like I maybe still haven't got the formatting quite right for the This Other The other one is here: cpython/Doc/reference/datamodel.rst Lines 2010 to 2013 in 178919c |
AlexWaygood
commented
Jan 3, 2024
Weird, I'm still seeing it on Firefox (have tried clearing the cache, still seeing it), but not on Opera. Eh, not the biggest issue in the world anyway :) |
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @AlexWaygood, I could not cleanly backport this to |
Sorry, @AlexWaygood, I could not cleanly backport this to |
GH-113686 is a backport of this pull request to the 3.12 branch. |
(cherry-picked from commit f1f8392) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
GH-113687 is a backport of this pull request to the 3.11 branch. |
(cherry-picked from commit f1f8392) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
) (cherry-picked from commit f1f8392) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
) (cherry-picked from commit f1f8392) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>




I noticed while preparing #112781 that this method wasn't documented properly, despite several deprecated things (that the method was meant to replace) being documented. So let's document it!
Most of the docs here are just copied from PEP-626: https://peps.python.org/pep-0626/#the-new-co-lines-method-of-code-objects
📚 Documentation preview 📚: https://cpython-previews--113682.org.readthedocs.build/