Serhiy Storchaka added the comment:

The reason for disallowing some undefined escapes is the same as in pattern 
strings: this would allow as to introduce new special escape sequences. For 
example:

* \N{...} for named character escape.
* Perl and extended PCRE use \L and \U for making lower and upper casing of the 
replacement. \U is already used for other purpose, but you have an idea.

Of course the need in new special escape sequences in template string is much 
less then in pattern string.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28450>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to