[pypy-issue] [issue1221] raw_input() returns unicode, not str

Dave Malcolm tracker at bugs.pypy.org
Thu Jul 19 17:18:46 CEST 2012


New submission from Dave Malcolm <dmalcolm at redhat.com>:

For a translated build of PyPy 1.9, raw_input() is returning a unicode, and on IRC people confirmed that this was 
also seen with nightly.

However, with untranslated (56219:c8cdf66b371a) it returns a str, which is what CPython returns.

This breaks the commands within help(), e.g. "modules", making it show help on the unicode type, rather than a list 
of modules, due to this conditional in lib-python/2.7/pydoc.py:Helper.help failing:
   if type(request) is type(''):

[reported downstream as https://bugzilla.redhat.com/show_bug.cgi?id=841546]

----------
messages: 4603
nosy: dmalcolm, pypy-issue
priority: bug
status: unread
title: raw_input() returns unicode, not str

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1221>
________________________________________


More information about the pypy-issue mailing list