help(string) commands not working on pyton 3.5

Prasad Joshi prajoshi at microsoft.com
Fri Oct 16 18:34:52 EDT 2015


Thanks for the reply.

I am using windows 10. 

>>> import math
>>>
>>>
>>> help (math)
'more' is not recognized as an internal or external command,
operable program or batch file.

>>> help
Type help() for interactive help, or help(object) for help about object.
>>> help(math)
'more' is not recognized as an internal or external command,
operable program or batch file.

>>>
>>> help(print)
'more' is not recognized as an internal or external command,
operable program or batch file.

>>>

Also help worked when I switched to plain integer as you mentioned below but looks like it didn't save it. 

Btw - I am pretty new to python hence asking these questions. 

Thanks again!
Prasad Joshi. 

-----Original Message-----
From: eryksun [mailto:eryksun at gmail.com] 
Sent: Thursday, October 15, 2015 5:41 AM
To: python-list at python.org
Cc: Prasad Joshi <prajoshi at microsoft.com>
Subject: Re: help(string) commands not working on pyton 3.5

On 10/14/15, Prasad Joshi <prajoshi at microsoft.com> wrote:
> Hi,
>
> I have installed the "Windows x86-64 executable 
> installer<https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fwww.python.org%2fftp%2fpython%2f3.5.0%2fpython-3.5.0-amd64.exe&data=01%7c01%7cprajoshi%40microsoft.com%7ca5f51b30e64a4aebcacd08d2d55dd2fc%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=1Ji%2bIZ9T51967DLMt8ykaawmC5n31XhAyuw9zCe1cSo%3d>"
> on my desktop but I cannot get help ( ) or help (string) command working.
> What could be an issue?
>

It may help to know which version of Windows you're using -- XP, Vista, 7, 8, or 10?

help() may work after switching to a plain pager:

    import pydoc
    pydoc.pager = pydoc.plainpager

in which case, check whether the following prints "test":

    pydoc.tempfilepager('test', 'more <')

If not, please reply with the traceback or error message, if any.


More information about the Python-list mailing list