Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online help utility broken in QtConsole #1145

Closed
miham opened this issue Dec 12, 2011 · 1 comment · Fixed by #3529
Closed

Online help utility broken in QtConsole #1145

miham opened this issue Dec 12, 2011 · 1 comment · Fixed by #3529

Comments

@miham
Copy link

miham commented Dec 12, 2011

Whatever I type in online help utility (started in QtConsole), I get help on unicode object,

Python 2.7.2 (default, Nov 21 2011, 17:25:27) 
Type "copyright", "credits" or "license" for more information.

IPython 0.12.beta -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
%guiref   -> A brief reference about the graphical user interface.

In [1]: help()

Welcome to Python 2.7!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".


help> topics
Help on unicode object:

class unicode(basestring)
 |  unicode(string [, encoding[, errors]]) -> object
 |  
 |  Create a new Unicode object from the given encoded string.
 |  encoding defaults to the current default string encoding.
 |  errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'.
 |  
 |  Method resolution order:
 |      unicode
 |      basestring
 |      object
 |  
 |  Methods defined here:
 |  
 |  __add__(...)
 |      x.__add__(y) <==> x+y
 |  
 |  __contains__(...)
 |      x.__contains__(y) <==> y in x

etc ...
@minrk
Copy link
Member

minrk commented Dec 12, 2011

Presumably due to the fact that our raw_input wrapper that forwards the request to the qtconsole returns unicode instead of a bytestring, like the builtin one. We should probably fix this.

This is precisely the difference between doing help('topics') and help(u'topics').

minrk added a commit to minrk/ipython that referenced this issue Jul 4, 2013
matches raw_input.  Some things can't handle unicode objects (e.g. `help()`).

closes ipython#1145
Carreau added a commit that referenced this issue Jul 6, 2013
ensure raw_input returns str in zmq shell

matches raw_input. Some things can't handle unicode objects (e.g. help()).

closes #1145
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
matches raw_input.  Some things can't handle unicode objects (e.g. `help()`).

closes ipython#1145
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
ensure raw_input returns str in zmq shell

matches raw_input. Some things can't handle unicode objects (e.g. help()).

closes ipython#1145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants