Zufu Liu <zufu...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37436>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to