This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcea
Recipients benjamin.peterson, ezio.melotti, i386x, jcea, pitrou, stutzbach
Date 2011-09-13.12:03:22
SpamBayes Score 3.1083924e-05
Marked as misclassified No
Message-id <1315915403.21.0.442851533911.issue12969@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-09-13 12:03:23jceasetrecipients: + jcea, pitrou, benjamin.peterson, stutzbach, ezio.melotti, i386x
2011-09-13 12:03:23jceasetmessageid: <1315915403.21.0.442851533911.issue12969@psf.upfronthosting.co.za>
2011-09-13 12:03:22jcealinkissue12969 messages
2011-09-13 12:03:22jceacreate