[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

Brett Cannon report at bugs.python.org
Mon May 22 20:13:03 EDT 2017


Brett Cannon added the comment:

The problem with leaving os.fspath() out of os.path.normcase() is that suddenly a single function that deals with paths won't work with path-like objects. So that means support for path-like objects won't implicitly work in code that assumes a path but doesn't explicitly go out of its way to support path-like objects.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30427>
_______________________________________


More information about the Python-bugs-list mailing list