Ilya Sandler <ilya.sand...@gmail.com> added the comment:

Would avoiding PyErr_CheckSignals() while the file object is in inconsistent 
state be a reasonable alternative?

I am guessing that it's not that uncommon for a signal handler to need IO (e.g 
to log a signal). 

If making IO safer is not an option, then I think, this limitation needs to be 
documented (especially, given that this seems to be a behavior change from 
Python 2.x).

----------

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

Reply via email to