New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the co_lines
method on code objects
#113682
Conversation
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
|
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>
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/