Aaron Sherman <a...@ajs.com> added the comment:

Matthew, thank you for replying. I still think the primary issue is the 
potential for confusion between single digit escapes and backreferences, and 
the ease with which they could be addressed, but to cover what you said:

Quote: the normal way to handle "\41" + "1" is "\0411"

That might be the way dictated by the limitations of escape expansion as it is 
now, but it's entirely non-intuitive and seems more like the "exciting" edge 
cases (and obfuscated code opportunities) in other languages than something 
Python would be proud of.

With \41\e1 you would actually be able to tell, visually that the 1 does not 
get read by the code which reads the \41. This seems to me to be a serious win 
for maintainability.

----------

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

Reply via email to