Message185089
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' |
|
Date |
User |
Action |
Args |
2013-03-23 20:52:57 | francismb | set | recipients:
+ francismb, doerwalter, vstinner, eric.smith, ezio.melotti |
2013-03-23 20:52:57 | francismb | set | messageid: <1364071977.1.0.44335861159.issue7267@psf.upfronthosting.co.za> |
2013-03-23 20:52:57 | francismb | link | issue7267 messages |
2013-03-23 20:52:56 | francismb | create | |
|