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 francismb
Recipients doerwalter, eric.smith, ezio.melotti, francismb, vstinner
Date 2013-03-23.20:52:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364071977.1.0.44335861159.issue7267@psf.upfronthosting.co.za>
In-reply-to
Content
In 2.7.3 >>>

>>> u'{0:c}'.format(127)
u'\x7f'

>>> u'{0:c}'.format(128)

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    u'{0:c}'.format(128)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)

>>> u'{0:c}'.format(255)

Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    u'{0:c}'.format(255)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

>>> u'{0:c}'.format(256)
u'\x00'

>>> u'{0:c}'.format(257)
u'\x01'
History
Date User Action Args
2013-03-23 20:52:57francismbsetrecipients: + francismb, doerwalter, vstinner, eric.smith, ezio.melotti
2013-03-23 20:52:57francismbsetmessageid: <1364071977.1.0.44335861159.issue7267@psf.upfronthosting.co.za>
2013-03-23 20:52:57francismblinkissue7267 messages
2013-03-23 20:52:56francismbcreate