[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Eric V. Smith
Eric V. Smith added the comment: Maxwell: thank you for your contribution. I agree that these don’t belong in the re module. I think a personal library or something on PyPI (logically equivalent to more-itertools) would be more appropriate. I suggest closing this as rejected. --

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: The scanf() translation table primarily serves as a way to learn regex syntax for people who only know scanf syntax. It would defeat the educational purpose to immortalize the translation as fixed constants. For the most part, people are better off

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- keywords: +patch pull_requests: +28111 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29885 ___ Python tracker

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : The documentation for the `re` module suggests several regular expressions for use in simulating `scanf()`. Provide these directly in the `re` module. -- components: Library (Lib) messages: 407491 nosy: tekknolagi priority: normal severity: