Ezio Melotti added the comment:
We discussed this on IRC, and apparently the seemingly valid result I got on
3.2 was because I had a narrow build. On a wide 3.2 build I get:
>>> str(array('u', b'asdf'))
"array('u', '\\U66647361')"
Since 3.3+ behaves like a wide build and since \U66647361 is not valid, I now
agree that raising an error is the right thing to do.
If possible, even 3.2 should raise an error, rather than returning an invalid
codepoint.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17223>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com