Skip navigation

key(s) to press to get out of help in terminal in python

450 Views 3 Replies Latest reply: Aug 28, 2013 8:15 AM by rccharles RSS
john cummin1 Level 2 Level 2 (400 points)
Currently Being Moderated
Aug 27, 2013 6:09 PM

In Terminal, having gone into Python by typing python, the typing help(xxx) where xxx is something meaningful, it gives a help page. It's a bit like typing man ... whatever outside of Python. After you scroll through the pages it says "END". How do I then get out of that? I can press CTRL + Z which gets out of the help but that also gets out of Python. I want to stay in Python but get out of help. I can't find any key presses to do this.



  • rccharles Level 5 Level 5 (5,150 points)





    mac $ python
    Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:32:06) 
    [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> help
    Type help() for interactive help, or help(object) for help about object.
    >>> 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
    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> quit
    You are now leaving help and returning to the Python interpreter.
    If you want to ask for help on a particular object directly from the
    interpreter, you can type "help(object)".  Executing "help('string')"
    has the same effect as typing a particular string at the help> prompt.
  • rccharles Level 5 Level 5 (5,150 points)

    Thanks for the points.  Glad to learn that q quits too.




More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.