Title: Document the `co_lines` method on code objects by AlexWaygood · Pull Request #113682 · python/cpython · GitHub
Open Graph Title: Document the `co_lines` method on code objects by AlexWaygood · Pull Request #113682 · python/cpython
X Title: Document the `co_lines` method on code objects by AlexWaygood · Pull Request #113682 · python/cpython
Description: 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/
Open Graph Description: 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 i...
X Description: 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 do...
Opengraph URL: https://github.com/python/cpython/pull/113682
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files/:range(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:30cdf33d-bcf5-a1cb-ca65-d1d0d67a211b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9AFE:1372B1:32F769F:454DE83:6995B879 |
| html-safe-nonce | aa7836459aeed738b408399372a9b5dd03b69a7079b019e54aa0d2354a1f36cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUZFOjEzNzJCMTozMkY3NjlGOjQ1NERFODM6Njk5NUI4NzkiLCJ2aXNpdG9yX2lkIjoiODQzNzI3MDc0NTczOTI3ODQ1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 80dfd7cc8999f9c2440145b49fb04103f410b6ad77a101098daa52f9c8cdf3ab |
| hovercard-subject-tag | pull_request:1663555604 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/113682/files/98dcf053f98c7bf4da7d91503d604e0c6a0613d7 |
| twitter:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| og:image:alt | 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 i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | db6e0566cb0ff9d4d5e42a9ea092b295227443ff414c53098b551c8f31721145 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 672486f3337737e98e5438ff6dc46c49119d654a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width