Jesús Cea Avión <j...@jcea.es> added the comment:

In "help(open)" I see this:

"""
    file is either a text or byte string giving the name (and the path
    if the file isn't in the current working directory) of the file to
    be opened or an integer file descriptor of the file to be
    wrapped. (If a file descriptor is given, it is closed when the
    returned I/O object is closed, unless closefd is set to False.)
"""

So, file descriptors are allowed.

The interpreter shutdowns because your are closing STDIN. This is correct, in 
my opinion.

Closing this bug as "invalid". If you think this is an error, feel free to 
argue.

----------
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12969>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to