help() on stdout.closed

Pekka Karjalainen pkarjala at mail.student.oulu.fi
Wed Jun 21 05:51:35 EDT 2006


Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sys import stdout
>>> help (stdout.closed) 

If I do this, it gives me help on the bool object. Also:

>>> stdout.closed.__doc__
'bool(x) -> bool\n\nReturns True when the argument x is true, False 
otherwise.\nThe builtins True and False are the only two instances of the 
class bool.\nThe class bool is a subclass of the class int, and cannot be 
subclassed.'

What's going on here? Other docstrings in sys.stdout work fine.

Pekka (uses 2.4.3 on another comp)



More information about the Python-list mailing list