Title: bpo-40334: Fix error location upon parsing an invalid string literal by lysnikolaou · Pull Request #19962 · python/cpython · GitHub
Open Graph Title: bpo-40334: Fix error location upon parsing an invalid string literal by lysnikolaou · Pull Request #19962 · python/cpython
X Title: bpo-40334: Fix error location upon parsing an invalid string literal by lysnikolaou · Pull Request #19962 · python/cpython
Description: When parsing a string with an invalid escape, the old parser used to point to the beginning of the invalid string. This PR changes the new parser to match that behavior, since it's currently pointing to the end of the string (or to be more precise, to the beginning of the next token). Closes we-like-parsers#64. https://bugs.python.org/issue40334
Open Graph Description: When parsing a string with an invalid escape, the old parser used to point to the beginning of the invalid string. This PR changes the new parser to match that behavior, since it's currently po...
X Description: When parsing a string with an invalid escape, the old parser used to point to the beginning of the invalid string. This PR changes the new parser to match that behavior, since it's currentl...
Opengraph URL: https://github.com/python/cpython/pull/19962
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b7d1372a-d5db-0943-d950-e709566729cd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8CC0:29B8E2:815A22:B3CDCF:696A8092 |
| html-safe-nonce | 4eb1d4bad242686d4d0616e92793517e3f3c0c45e2ec7b9e50b9b6c01bc3582b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0MwOjI5QjhFMjo4MTVBMjI6QjNDRENGOjY5NkE4MDkyIiwidmlzaXRvcl9pZCI6IjQyMDcxNDUwOTQ5OTAxNjgyMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d93b8ff3aa54901e75f2bab896f234e397bb76f44708cd0f253a95488885dc05 |
| hovercard-subject-tag | pull_request:414198071 |
| 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/19962/files |
| twitter:image | https://avatars.githubusercontent.com/u/20306270?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/20306270?s=400&v=4 |
| og:image:alt | When parsing a string with an invalid escape, the old parser used to point to the beginning of the invalid string. This PR changes the new parser to match that behavior, since it's currently po... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width