homepage

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 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:07msyangsetrecipients: + msyang
2008年12月07日 21:44:07msyangsetmessageid: <1228686247.24.0.760042500601.issue4584@psf.upfronthosting.co.za>
2008年12月07日 21:44:06msyanglinkissue4584 messages
2008年12月07日 21:44:06msyangcreate

AltStyle によって変換されたページ (->オリジナル) /