Message81059
> Problem: use different (encoding) rule for the display hook and for
> print() may disturb new users (Why does ">>> chr(...)" work whereas
> ">>> print(chr(...))" fails?).
This is the same behavior that Python2.x has (with the only difference
that Py2 always show the char as u'\uXXXX' if >0x7F whereas Py3 /tries/
to display it):
>>> unichr(0x0100)
u'\u0100'
>>> print unichr(0x0100)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u0100' in
position 0: character maps to <undefined> |
|
Date |
User |
Action |
Args |
2009-02-03 14:01:50 | ezio.melotti | set | recipients:
+ ezio.melotti, loewis, vstinner, giampaolo.rodola |
2009-02-03 14:01:50 | ezio.melotti | set | messageid: <1233669710.59.0.690566271747.issue5110@psf.upfronthosting.co.za> |
2009-02-03 14:01:49 | ezio.melotti | link | issue5110 messages |
2009-02-03 14:01:48 | ezio.melotti | create | |
|