This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doerwalter
Recipients doerwalter, eric.smith
Date 2009-11-06.14:52:30
SpamBayes Score 1.3236802e-09
Marked as misclassified No
Message-id <1257519152.13.0.78194106886.issue7267@psf.upfronthosting.co.za>
In-reply-to
Content
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?)
History
Date User Action Args
2009-11-06 14:52:32doerwaltersetrecipients: + doerwalter, eric.smith
2009-11-06 14:52:32doerwaltersetmessageid: <1257519152.13.0.78194106886.issue7267@psf.upfronthosting.co.za>
2009-11-06 14:52:30doerwalterlinkissue7267 messages
2009-11-06 14:52:30doerwaltercreate