help() on stdout.closed
Fredrik Lundh
fredrik at pythonware.com
Wed Jun 21 07:54:43 EDT 2006
Pekka Karjalainen wrote:
> Suppose I had no idea what sys.stdout.closed was and wanted to find out.
> Where would I look it up?
>>> help(sys.stdout)
...
| closed = <attribute 'closed' of 'file' objects>
| True if the file is closed
...
in case anyone feels like hacking, support for something like
>>> help(sys.stdout, "closed")
might be useful, I think.
</F>
More information about the Python-list
mailing list