Title: Parse error for Long octal literals in ast27 · Issue #26 · python/typed_ast · GitHub
Open Graph Title: Parse error for Long octal literals in ast27 · Issue #26 · python/typed_ast
X Title: Parse error for Long octal literals in ast27 · Issue #26 · python/typed_ast
Description: 01L is a perfectly valid Python 2 long literal, but for some reason ast27 refuses to parse it and instead gives ValueError: invalid literal for int() with base 0: '01'. 01 and 1L both work fine.
Open Graph Description: 01L is a perfectly valid Python 2 long literal, but for some reason ast27 refuses to parse it and instead gives ValueError: invalid literal for int() with base 0: '01'. 01 and 1L both work fine.
X Description: 01L is a perfectly valid Python 2 long literal, but for some reason ast27 refuses to parse it and instead gives ValueError: invalid literal for int() with base 0: '01'. 01 and 1L both work ...
Opengraph URL: https://github.com/python/typed_ast/issues/26
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parse error for Long octal literals in ast27","articleBody":"`01L` is a perfectly valid Python 2 long literal, but for some reason ast27 refuses to parse it and instead gives `ValueError: invalid literal for int() with base 0: '01'`. `01` and `1L` both work fine.","author":{"url":"https://github.com/ddfisher","@type":"Person","name":"ddfisher"},"datePublished":"2017-01-21T00:50:19Z","url":"https://github.com/python/typed_ast/issues/26"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:148c17fe-41a7-fb8c-8423-700dcd61dd24 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89A2:1A77D:F0C420:1420ED6:6B005942 |
| html-safe-nonce | 0440bba1f31a2c892a74793f59ad0c008bb5d871d05163b648e5a886661ee552 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUEyOjFBNzdEOkYwQzQyMDoxNDIwRUQ2OjZCMDA1OTQyIiwidmlzaXRvcl9pZCI6IjM5NjMzMjU1MjI1MTkyODQwMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 11822121983ccf7b36ddbf70bf74c1046eef842f0c9234b71c0bbd171807d76f |
| hovercard-subject-tag | issue:202276945 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/typed_ast/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3bc6fd70fbcb203bd0c6bc586b35cc8de3f92e7f07b1122795f3403488a37ee3/python/typed_ast/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3bc6fd70fbcb203bd0c6bc586b35cc8de3f92e7f07b1122795f3403488a37ee3/python/typed_ast/issues/26 |
| og:image:alt | 01L is a perfectly valid Python 2 long literal, but for some reason ast27 refuses to parse it and instead gives ValueError: invalid literal for int() with base 0: '01'. 01 and 1L both work fine. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ddfisher |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typed_ast git https://github.com/python/typed_ast.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 51875828 |
| octolytics-dimension-repository_nwo | python/typed_ast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51875828 |
| octolytics-dimension-repository_network_root_nwo | python/typed_ast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width