Why doesn't response pydoc on my Python 2.7?

Erik python at lucidity.plus.com
Sat Dec 12 18:21:02 EST 2015


On 12/12/15 23:08, Robert wrote:
> In fact, I wanted to run the following code. When it failed, I moved to
> the original question above.

How did it fail? Tell us what _did_ happen.

It works fine for me:

$ pydoc module1
Help on module module1:

NAME
     module1

FILE
     /tmp/robert/module1.py

DATA
     a = 'A'
     b = 'B'
     c = 'C'


$ pydoc module2
Help on module module2:

NAME
     module2

FILE
     /tmp/robert/module2.py

DATA
     __all__ = ['a', 'b']
     a = 'A'
     b = 'B'

E.



More information about the Python-list mailing list