Title: bpo-38870: Don't start generated output with newlines by isidentical · Pull Request #19636 · python/cpython · GitHub
Open Graph Title: bpo-38870: Don't start generated output with newlines by isidentical · Pull Request #19636 · python/cpython
X Title: bpo-38870: Don't start generated output with newlines by isidentical · Pull Request #19636 · python/cpython
Description: This is a small nit that can cause too much unnecessary nose when using ast.unparse for comparisons. Examples $ python Python 3.9.0a5+ (heads/master:5565c30f0b, Apr 17 2020, 16:56:39) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>> ast.unparse(ast.parse("compile")) '\ncompile' >>> ast.unparse(ast.parse("compile")) == "compile" False >>> ast.unparse(ast.parse("class compile: pass")) '\n\nclass compile():\n pass' https://bugs.python.org/issue38870
Open Graph Description: This is a small nit that can cause too much unnecessary nose when using ast.unparse for comparisons. Examples $ python Python 3.9.0a5+ (heads/master:5565c30f0b, Apr 17 2020, 16:56:39) [GCC 7.5.0]...
X Description: This is a small nit that can cause too much unnecessary nose when using ast.unparse for comparisons. Examples $ python Python 3.9.0a5+ (heads/master:5565c30f0b, Apr 17 2020, 16:56:39) [GCC 7.5.0]...
Opengraph URL: https://github.com/python/cpython/pull/19636
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f3ac9921-5fda-fc43-8f14-b35377c9bf30 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | EDD0:20F249:280D66:38732F:696A0717 |
| html-safe-nonce | e6b18d8066d5330040a762eaab06a2d4e58397af956e9268cf2ffaee7d067b2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREQwOjIwRjI0OToyODBENjY6Mzg3MzJGOjY5NkEwNzE3IiwidmlzaXRvcl9pZCI6IjY1NDkwNzgxMzg4NjY1MDEzOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b41c894e88fcd9e916b116368ec2e6823222aab5b72d3b82c17d3bb43cfba09e |
| hovercard-subject-tag | pull_request:406936738 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/19636/checks |
| 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 | This is a small nit that can cause too much unnecessary nose when using ast.unparse for comparisons. Examples $ python Python 3.9.0a5+ (heads/master:5565c30f0b, Apr 17 2020, 16:56:39) [GCC 7.5.0]... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| 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 |
Links:
Viewport: width=device-width