[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

Zufu Liu report at bugs.python.org
Mon Jul 1 20:43:44 EDT 2019


Zufu Liu <zufuliu at 163.com> added the comment:

Personally I prefer TypeError. Use file descriptor is rare, I never used it in Python script.
I encountered this because arguments passed in wrong order in my function, then I passed the wrong argument to isfile() without checking.
Make isfile() returns False would make it harder to find bugs in user program.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37436>
_______________________________________


More information about the Python-bugs-list mailing list