Christian Heimes added the comment:

No, that's not possible. 'fp' is part of the argument to 
PyRun_SimpleFileExFlags() and never NULL. We need some way to distinguish a 
externally provided fp from a self-opened fp and fclose(fp) in the latter case.

----------

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

Reply via email to