Message77264
| Author |
msyang |
| Recipients |
msyang |
| Date |
2008年12月07日.21:44:05 |
| SpamBayes Score |
3.348966e-05 |
| Marked as misclassified |
No |
| Message-id |
<1228686247.24.0.760042500601.issue4584@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
doctest.testmod() fails when attempting to echo back a bytes type with
ord() > 128.
def ok():
"""
>>> bytes([255,])
b'\xff'
"""
pass
def notOK():
"""
>>> b'\xff'
"""
pass
import doctest
doctest.testmod()
Traceback (most recent call last):
...
UnicodeEncodeError: 'ascii' codec can't encode character '\xff' in
position 141: ordinal not in range(128) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年12月07日 21:44:07 | msyang | set | recipients:
+ msyang |
| 2008年12月07日 21:44:07 | msyang | set | messageid: <1228686247.24.0.760042500601.issue4584@psf.upfronthosting.co.za> |
| 2008年12月07日 21:44:06 | msyang | link | issue4584 messages |
| 2008年12月07日 21:44:06 | msyang | create |
|