[Python-Dev] Deprecating invalid escape sequences: review request

Emanuel Barry vgr255 at live.ca
Mon Aug 22 21:16:21 EDT 2016


Hello Python-dev,
some time ago I went ahead and implemented a patch to deprecate the invalid
escape sequences (e.g. \c, \g, \h, etc.) in str and bytes literals. The
change itself is pretty straightforward, and shouldn't be hard to review.
The change was split in two patches; one which does the actual deprecation
and adds relevant tests, and the other fixes all invalid escape sequences in
the entire CPython distribution (this resulted in a substantial patch file
of over 2000 lines). I'd like to get this reviewed and merged in time, so
I'm asking here. Thanks in advance!

http://bugs.python.org/issue27364

-Emanuel


More information about the Python-Dev mailing list