help() function doesn't work in the Python Console

Using python's "help()" function in PyCharm's Python Console doesn't seem to work.

In the Python Console, I type "help()" and get the output of the help() command, in addtion to a new prompt ">?".  I should be able to enter "topics" or "keywords" and see a list of topics and keywords on which help is available.  Typing in one of the topics or keywords should bring up the documentation.

What happens instead, is that after hitting Enter, I get a regular Python interpreter prompt ">>>".  I am unable to evaluate any further expressions from this Python Console session.  After restarting the Python Console session I am able to evaluate expressions again.

Here's some sample output:

/usr/bin/python2.6 -u /home/jramnani/Downloads/pycharm-1.0.1/helpers/pydev/console/pydevconsole.py 49343 37742

  import sys; print('Python %s on %s' % (sys.version, sys.platform))

  Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)

  [GCC 4.4.3] on linux2

  sys.path.append('/home/jramnani/work/myproj')

  >>> foo = 1

  >>> help()


  Welcome to Python 2.6!  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

  >>>

  >>> bar = 2

  >>> foo

  >>> print foo

  >>> print bar

  >>>

  >>>

  >>>

  >>>

2 comments
Comment actions Permalink

Hello Jeff,

Please file a bug report at http://youtrack.jetbrains.net/

Using python's "help()" function in PyCharm's Python Console doesn't

seem to work.

In the Python Console, I type "help()" and get the output of the

help() command, in addtion to a new prompt ">?".  I should be able to

enter "topics" or "keywords" and see a list of topics and keywords on

which help is available.  Typing in one of the topics or keywords

should bring up the documentation.

What happens instead, is that after hitting Enter, I get a regular

Python interpreter prompt ">>>".  I am unable to evaluate any further

expressions from this Python Console session.  After restarting the

Python Console session I am able to evaluate expressions again.

Here's some sample output:

/usr/bin/python2.6 -u

/home/jramnani/Downloads/pycharm-1.0.1/helpers/pydev/console/pydevcons

ole.py 49343 37742

import sys; print('Python %s on %s' % (sys.version, sys.platform))

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)

on linux2

sys.path.append('/home/jramnani/work/myproj')

>>>> foo = 1

>>>> help()

Welcome to Python 2.6!  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>>>

>>>> bar = 2

>>>> foo

>>>> print foo

>>>> print bar

---

Original message URL:

http://devnet.jetbrains.net/message/5278247#5278247

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.