Dennis Sweeney <[email protected]> added the comment:
In particular, it's one ascii character:
>>> b'abracadabra'.hex('😋')
ValueError: sep must be ASCII.
I wouldn't be completely opposed to allowing longer strings, but since there
are easy enough ways to do it already, put me at a -0. We can see if anyone
else is in favor.
----------
components: +Interpreter Core -IO
nosy: +gregory.p.smith
versions: +Python 3.11
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue47052>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com