Message94972
I'd say that a value >= 128 should generate a Unicode string (as the PEP
explicitely states that the value is a Unicode code point and not a byte
value).
However str.format() doesn't seem to support mixing str and unicode anyway:
>>> '{0}'.format(u'\u3042')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u3042' in
position 0: ordinal not in range(128)
so str.format() might raise an OverflowError for values >= 128 (or >= 256?) |
|
Date |
User |
Action |
Args |
2009-11-06 14:52:32 | doerwalter | set | recipients:
+ doerwalter, eric.smith |
2009-11-06 14:52:32 | doerwalter | set | messageid: <1257519152.13.0.78194106886.issue7267@psf.upfronthosting.co.za> |
2009-11-06 14:52:30 | doerwalter | link | issue7267 messages |
2009-11-06 14:52:30 | doerwalter | create | |
|