| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bfbce9e9-41c3-a16b-7c8b-8a90a9121b0f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D18A:B5F9D:201CCB:2D9FE3:696A06ED |
| html-safe-nonce | 9078946df81baa3825950bad49a3a5b11e594834ef3191186ceec28aae249cfe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMThBOkI1RjlEOjIwMUNDQjoyRDlGRTM6Njk2QTA2RUQiLCJ2aXNpdG9yX2lkIjoiODY3MDE0NDg2ODk1Nzk0NzYyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1eb0e4e90d0d742f1f59a5d898ba907e5ade87518ea34086ec6fd0c0b8a67bfd |
| hovercard-subject-tag | pull_request:358210602 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/17760/files |
| twitter:image | https://avatars.githubusercontent.com/u/47358913?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/47358913?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue38870 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc |
| 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 | 671c2f67171dbced24284331f3133a613d08c366 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/17760/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F17760%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F17760%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/17760/files |
| Reload | https://github.com/python/cpython/pull/17760/files |
| Reload | https://github.com/python/cpython/pull/17760/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/17760/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/17760/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| pablogsal | https://github.com/pablogsal |
| python:master | https://github.com/python/cpython/tree/master |
| isidentical:bpo-38870-docstrings | https://github.com/isidentical/cpython/tree/bpo-38870-docstrings |
|
Conversation
22
| https://github.com/python/cpython/pull/17760 |
|
Commits
12
| https://github.com/python/cpython/pull/17760/commits |
|
Checks
0
| https://github.com/python/cpython/pull/17760/checks |
|
Files changed
| https://github.com/python/cpython/pull/17760/files |
| Please reload this page | https://github.com/python/cpython/pull/17760/files |
|
bpo-38870: Docstring support for function/class/module nodes
| https://github.com/python/cpython/pull/17760/files#top |
|
Show all changes
12 commits
| https://github.com/python/cpython/pull/17760/files |
|
ad3e6fd
bpo-38870: Docstring support for function/class/module nodes
isidentical Dec 30, 2019
| https://github.com/python/cpython/pull/17760/commits/ad3e6fd8351ae7e78137ba574c21e6a6589a8baf |
|
f89548b
test sequentially
isidentical Jan 2, 2020
| https://github.com/python/cpython/pull/17760/commits/f89548be2f8830bd41de0cb1cb47dae392b77039 |
|
64c8124
apply suggestions
isidentical Mar 1, 2020
| https://github.com/python/cpython/pull/17760/commits/64c81244a8219b9b9c64e4226e0a1136a9eb386a |
|
7d534ce
fix typo
isidentical Mar 1, 2020
| https://github.com/python/cpython/pull/17760/commits/7d534ce6239b58ff37322c520ede390390624a19 |
|
1983849
add comments explaining why we are replacing
isidentical Mar 1, 2020
| https://github.com/python/cpython/pull/17760/commits/198384955096cd067f4d93c475c7c1498b3d74ee |
|
7d6fb67
rename _body_helper to _write_docstring_and_traverse_body
isidentical Mar 1, 2020
| https://github.com/python/cpython/pull/17760/commits/7d6fb67fb3a6a14099f6c59bf3c326b9837e9a5d |
|
ff11463
add a comment to say where logic comes from
isidentical Mar 1, 2020
| https://github.com/python/cpython/pull/17760/commits/ff11463162206de7c44af8361cc93a86e4ae6364 |
|
ed8f2ae
false tests and module tests
isidentical Mar 2, 2020
| https://github.com/python/cpython/pull/17760/commits/ed8f2ae390af000f3c67fb234562bf6a2c9bfc2c |
|
5d6d032
split positive/negative docstrings tests, add f-string test which sho…
isidentical Mar 2, 2020
| https://github.com/python/cpython/pull/17760/commits/5d6d032348b1daa8caa4f12368e3e640ba0fedde |
|
d291181
Update Lib/test/test_unparse.py
isidentical Mar 2, 2020
| https://github.com/python/cpython/pull/17760/commits/d29118114674a5f13c96f423b129791bea30bd24 |
|
565b95d
rename check_roundtrip to check_ast_roundtrip and clear up stuff in t…
isidentical Mar 2, 2020
| https://github.com/python/cpython/pull/17760/commits/565b95d5b6d7191f873431db583f82ae307462fe |
|
096eebb
Merge branch 'bpo-38870-docstrings' of github.com:isidentical/cpython…
isidentical Mar 2, 2020
| https://github.com/python/cpython/pull/17760/commits/096eebbeec929cbf44f04c31d53d1677ee3e0d5e |
|
Clear filters
| https://github.com/python/cpython/pull/17760/files |
| Please reload this page | https://github.com/python/cpython/pull/17760/files |
| Please reload this page | https://github.com/python/cpython/pull/17760/files |
|
ast.py
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
test_unparse.py
| https://github.com/python/cpython/pull/17760/files#diff-1393034a674edcc67802941e0e8cfa4966c9927ba9bde2cace103593140e3f89 |
| Lib/ast.py | https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
View file
| https://github.com/isidentical/cpython/blob/096eebbeec929cbf44f04c31d53d1677ee3e0d5e/Lib/ast.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/17760/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/17760/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
| Please reload this page | https://github.com/python/cpython/pull/17760/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |