| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9654564d-14a6-67e0-80b8-070b596fcde7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E952:CE9E9:4A2B39:67C0C6:696A0C82 |
| html-safe-nonce | da3c198c43ca8ed346512cd551aab16a4e583bf0766fcf0b12c69c959b5e2165 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTUyOkNFOUU5OjRBMkIzOTo2N0MwQzY6Njk2QTBDODIiLCJ2aXNpdG9yX2lkIjoiMTg4Nzc2MzI5OTYyNDU4MjQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 81a0a00810a75582e0fe6e2d0aae5037aa5933427e0b63eb16f9dcee6ee11764 |
| hovercard-subject-tag | pull_request:343758670 |
| 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/17302/files |
| twitter:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue38870
⚠️ Note that this PR only exposes the function in the ast module and does not improve on the base code to avoid creating a gigantic PR when fixing cosmetic chang... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/17302/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F17302%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%2F17302%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/17302/files |
| Reload | https://github.com/python/cpython/pull/17302/files |
| Reload | https://github.com/python/cpython/pull/17302/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/17302/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/17302/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 |
| pablogsal:bpo-38870 | https://github.com/pablogsal/cpython/tree/bpo-38870 |
|
Conversation
17
| https://github.com/python/cpython/pull/17302 |
|
Commits
15
| https://github.com/python/cpython/pull/17302/commits |
|
Checks
0
| https://github.com/python/cpython/pull/17302/checks |
|
Files changed
| https://github.com/python/cpython/pull/17302/files |
| Please reload this page | https://github.com/python/cpython/pull/17302/files |
|
bpo-38870: Expose a function to unparse an ast object in the ast module
| https://github.com/python/cpython/pull/17302/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/17302/files |
|
0a65c6a
bpo-38870: Expose a function to unparse an ast object in the ast module
pablogsal Nov 20, 2019
| https://github.com/python/cpython/pull/17302/commits/0a65c6a6a7ecf86fbf467f713d3605501d9b6c57 |
|
1014fa8
Update what's new
pablogsal Nov 20, 2019
| https://github.com/python/cpython/pull/17302/commits/1014fa8505effccde7a08d8dff92c649c2081d21 |
|
eb28c5d
Fix typo in class name
pablogsal Nov 20, 2019
| https://github.com/python/cpython/pull/17302/commits/eb28c5d3a7b4305254e7e2d03fac4232ee6a808c |
|
2d93781
Use NodeVisitor instead of handmade dispatch() method in _Unparser
isidentical Nov 21, 2019
| https://github.com/python/cpython/pull/17302/commits/2d93781c62e03bdb8c191c1ef2662e9d78e93522 |
|
838e7ef
make _Unparser.enter a context manager and remove leave
isidentical Nov 21, 2019
| https://github.com/python/cpython/pull/17302/commits/838e7ef682cb824a67556b3751c32f4652ae826e |
|
e9434a9
Make INFSTR a private constant, add interleave as a method to _Unparser
isidentical Nov 21, 2019
| https://github.com/python/cpython/pull/17302/commits/e9434a9e124e223214da94066b3607559c6b4c39 |
|
59f1efc
Modernize assert checks into ValueErrors, test that cases
isidentical Nov 21, 2019
| https://github.com/python/cpython/pull/17302/commits/59f1efc399cd580865aaae584ef9c88057bd6fd5 |
|
0b39840
Remove IO-like object API for _Unparser, convert it to node-based API
isidentical Nov 21, 2019
| https://github.com/python/cpython/pull/17302/commits/0b39840db7124d6a907e096e02147246a395fe41 |
|
68d1a32
Add Batuhan Taskaya as a contributor to exposing unparse
isidentical Nov 21, 2019
| https://github.com/python/cpython/pull/17302/commits/68d1a329719fec62dfe2e30f59dbab7cf3c08d2e |
|
ba425c1
Modernize test_unparse with using sole pathlib instead of mixing os.path
isidentical Nov 21, 2019
| https://github.com/python/cpython/pull/17302/commits/ba425c1d041e9ae12c5cd13d6a570f35371ef7d2 |
|
e158d34
Instead of using super, call traverse in all items so in the future w…
isidentical Nov 22, 2019
| https://github.com/python/cpython/pull/17302/commits/e158d34908c4f45597f6e5984b53caca6efd5aea |
|
fc0e8ac
test only Lib/ and Lib/test (some tests in lib2to3 is including py2)
isidentical Nov 22, 2019
| https://github.com/python/cpython/pull/17302/commits/fc0e8acc5853e47052cdd9fa646dff3352d9dcfc |
|
260cd5d
use ast.parse() for consistency in future tests
isidentical Nov 22, 2019
| https://github.com/python/cpython/pull/17302/commits/260cd5d63a894f5a093353c06c9b40fcbc0c6434 |
|
28471e9
Add formating, simplify the test file and cosmetic changes
pablogsal Nov 24, 2019
| https://github.com/python/cpython/pull/17302/commits/28471e9eaf6703950432a8c6963a4d17ec55fdbc |
|
96c9aad
Rewrite some docstrings
pablogsal Nov 24, 2019
| https://github.com/python/cpython/pull/17302/commits/96c9aade03c5f7bb9bfe02a277c603f2a2f73be8 |
|
Clear filters
| https://github.com/python/cpython/pull/17302/files |
| Please reload this page | https://github.com/python/cpython/pull/17302/files |
| Please reload this page | https://github.com/python/cpython/pull/17302/files |
|
ast.rst
| https://github.com/python/cpython/pull/17302/files#diff-2001e0882d63f99ea9256cccc068969c03afa6dca739cf2ee1f5068d4534ab08 |
|
3.9.rst
| https://github.com/python/cpython/pull/17302/files#diff-ec874d66bbcf13046b9928aa3716d14a93632f568b914eba32baf46ff4c9eb36 |
|
ast.py
| https://github.com/python/cpython/pull/17302/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
test_unparse.py
| https://github.com/python/cpython/pull/17302/files#diff-1393034a674edcc67802941e0e8cfa4966c9927ba9bde2cace103593140e3f89 |
|
2019-11-20-22-43-48.bpo-38870.rLVZEv.rst
| https://github.com/python/cpython/pull/17302/files#diff-376a8d5c220d27149e78d760c4addcd5e2b15636eb2ebadbb430d01cacb0e5ea |
|
unparse.py
| https://github.com/python/cpython/pull/17302/files#diff-0821b37fe28e7a1acf377e02c8927fd16125a7274d3f427e4efdd63cd3e06740 |
| Doc/library/ast.rst | https://github.com/python/cpython/pull/17302/files#diff-2001e0882d63f99ea9256cccc068969c03afa6dca739cf2ee1f5068d4534ab08 |
|
View file
| https://github.com/pablogsal/cpython/blob/96c9aade03c5f7bb9bfe02a277c603f2a2f73be8/Doc/library/ast.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/17302/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/17302/files#diff-2001e0882d63f99ea9256cccc068969c03afa6dca739cf2ee1f5068d4534ab08 |
|
| https://github.com/python/cpython/pull/17302/files#diff-2001e0882d63f99ea9256cccc068969c03afa6dca739cf2ee1f5068d4534ab08 |
| Doc/whatsnew/3.9.rst | https://github.com/python/cpython/pull/17302/files#diff-ec874d66bbcf13046b9928aa3716d14a93632f568b914eba32baf46ff4c9eb36 |
|
View file
| https://github.com/pablogsal/cpython/blob/96c9aade03c5f7bb9bfe02a277c603f2a2f73be8/Doc/whatsnew/3.9.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/17302/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/17302/files#diff-ec874d66bbcf13046b9928aa3716d14a93632f568b914eba32baf46ff4c9eb36 |
| Please reload this page | https://github.com/python/cpython/pull/17302/files |
|
| https://github.com/python/cpython/pull/17302/files#diff-ec874d66bbcf13046b9928aa3716d14a93632f568b914eba32baf46ff4c9eb36 |
| Please reload this page | https://github.com/python/cpython/pull/17302/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 |