Jesse Noller <jnol...@gmail.com> added the comment:

Attached is a patch which calls close() first, and then attempts to close 
the fd. In the case of an attribute errors (fileno doesn't exist) we 
simply set it to devnull. 

This is just a thought, feedback welcome - right now this allows this 
fixes issue 5155 and 5331 (and this issue)

----------
keywords: +patch
Added file: http://bugs.python.org/file14319/stdin-patchv1.patch

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

Reply via email to