[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch
Eric V. Smith
report at bugs.python.org
Thu Oct 15 09:04:47 EDT 2015
Eric V. Smith added the comment:
That's a great test, thanks.
If we were designing this from scratch, I agree that raising an exception is the right thing to do. But the questions is: can we change the behavior now?
I think it's unlikely that anyone is relying on these functions returning [W]EOF, and that raising an exception is unlikely to cause problems.
I'm curious: did you [Alexander] have some code where you're actually expecting an exception, or did you just stumble across this case?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25386>
_______________________________________
More information about the Python-bugs-list
mailing list