Title: Cryptic deprecation notice in the re module · Issue #99308 · python/cpython · GitHub
Open Graph Title: Cryptic deprecation notice in the re module · Issue #99308 · python/cpython
X Title: Cryptic deprecation notice in the re module · Issue #99308 · python/cpython
Description: Documentation I'm confused by the following notice: Deprecated since version 3.11: Group id containing anything except ASCII digits. After some digging I found the related PR. With the notice as is I would assume that non-ASCII digits wo...
Open Graph Description: Documentation I'm confused by the following notice: Deprecated since version 3.11: Group id containing anything except ASCII digits. After some digging I found the related PR. With the notice as is...
X Description: Documentation I'm confused by the following notice: Deprecated since version 3.11: Group id containing anything except ASCII digits. After some digging I found the related PR. With the notice a...
Opengraph URL: https://github.com/python/cpython/issues/99308
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cryptic deprecation notice in the re module","articleBody":"# Documentation\r\n\r\nI'm confused by the following [notice](https://docs.python.org/3/library/re.html#index-25):\r\n\r\n\u003e Deprecated since version 3.11: Group *id* containing anything except ASCII digits.\r\n\r\nAfter some digging I found the related [PR](https://github.com/python/cpython/issues/91760).\r\n\r\nWith the notice as is I would assume that non-ASCII digits would be interpreted as a name, but after reading the PR it's obvious that it cannot be the case since names must contain ASCII letters and digits.\r\n\r\nPerhaps it's better to rewrite it to match the notice for [re.sub](https://docs.python.org/3/library/re.html#re.sub):\r\n\r\n\u003e Deprecated since version 3.11: Group *id* containing anything except ASCII digits. Group names containing non-ASCII characters in bytes replacement strings.\r\n\r\nSee https://discuss.python.org/t/cryptic-3-11-deprecation-notice-in-the-re-module-doc/20903\r\n\n\n\u003c!-- gh-pr-number: gh-99310 --\u003e\n* PR: gh-99310\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-99311 --\u003e\n* PR: gh-99311\n\u003c!-- /gh-pr-number --\u003e\n\n\n\u003c!-- gh-pr-number: gh-101001 --\u003e\n* PR: gh-101001\n\u003c!-- /gh-pr-number --\u003e\n","author":{"url":"https://github.com/Kentzo","@type":"Person","name":"Kentzo"},"datePublished":"2022-11-10T00:21:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/99308/cpython/issues/99308"}
| 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:9fdb9b26-026b-8074-9089-802cb34b26a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87E2:29D5C2:4410C8:60483B:6968DB32 |
| html-safe-nonce | 5a450a70c88eb1a84d4e88528b12858519880c2d3cd1c556b2cd59b767d4c7d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0UyOjI5RDVDMjo0NDEwQzg6NjA0ODNCOjY5NjhEQjMyIiwidmlzaXRvcl9pZCI6IjE0MjkwNTc3MDEyOTgxMDEwNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9b07562244cc257a576c34a93664e4c2bce2a26b5801ca325b37c30a7d049241 |
| hovercard-subject-tag | issue:1442985609 |
| 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/cpython/99308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cdc6ee9524650872925e68f1079e87471a645d48ca2584f64d8b31202956ccac/python/cpython/issues/99308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cdc6ee9524650872925e68f1079e87471a645d48ca2584f64d8b31202956ccac/python/cpython/issues/99308 |
| og:image:alt | Documentation I'm confused by the following notice: Deprecated since version 3.11: Group id containing anything except ASCII digits. After some digging I found the related PR. With the notice as is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Kentzo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3c4e9f2fc1db52c609205138be6a397cfde4574cb54d53015014de30dd49f27e |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1fb1ea11f8c37dd4dd50347cca70d89824e93788 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width