On Tue, Jun 30, 2020 at 10:25:45PM +1000, Chris Angelico wrote:

> Be careful of semantics here. I'm not sure which languages do what,
> but I just checked Perl, and "\x{1234}" is equivalent to Python's
> "\u1234", not to "\x12\x34". This proposal is for the latter, which
> could be sneakily confusing to someone who also writes in Perl.

Is there anyone left who writes Perl :-)

(I know, I know, that's a terribly unfair comment and I am a very bad 
man...)

Seriously though, I think Perl users have a lot of things to re-learn, 
so I'm not worried about that. We already have a good way of writing a 
four hex-code unicode code point using u escapes. But we don't have a 
good way of writing a long sequence of control characters without a lot 
of repetition of `\x \x \x \x...`.


-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/3ZSMZREBN7RHNSKDINWZAMXJNZ4AKOVF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to