Suggestion: Regex string specifier like r and f
Barry
barry at barrys-emacs.org
Sun Jan 8 16:50:08 EST 2023
> On 8 Jan 2023, at 21:16, Raphael Santiago <raphael.santiago.53 at gmail.com> wrote:
>
> Maybe something like re""
> It should behave exactly like a raw string but would be useful for syntax
> highlighting and debugging. Perhaps also for type hinting expected regex
> input (don't know if this is feasible).
This is unlikely to be implemented. See https://discuss.python.org/t/allow-for-arbitrary-string-prefix-of-strings/19740/12 for related idea discussion.
Barry
> --
> https://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list