[issue7675] help() doesn't accept unicode literals in built in docstrings

Florent Xicluna report at bugs.python.org
Mon Jan 11 12:08:00 CET 2010


Florent Xicluna <laxyf at yahoo.fr> added the comment:

Confirmed.

With Python 2:

>>> import pydoc
>>> pydoc.pipepager(u'tütdelüt\n', 'cat')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "./Lib/pydoc.py", line 1357, in pipepager
    pipe.write(text)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 1: ordinal not in range(128)



With Python 3:

>>> import pydoc
>>> pydoc.pipepager('tütdelüt\n', 'cat')
tütdelüt

----------
nosy: +flox
priority:  -> normal
stage:  -> needs patch
versions: +Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7675>
_______________________________________


More information about the Python-bugs-list mailing list