Message281502
| Author |
serhiy.storchaka |
| Recipients |
Rosuav, barry, docs@python, ezio.melotti, lelit, mrabarnett, nedbat, serhiy.storchaka |
| Date |
2016年11月22日.19:28:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1479842936.68.0.667608567846.issue28450@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|