[issue27161] Confusing exception in Path().with_name
R. David Murray
report at bugs.python.org
Mon May 30 20:50:18 EDT 2016
R. David Murray added the comment:
I don't think so. Python uses duck typing, and one of the consequences of that is you can get weird errors if you pass in a type that sort-of-works but doesn't really. Arbitrarily restricting the input type is not something we do (that's what the whole static type checking thing is about...doing that as an external lint process.)
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27161>
_______________________________________
More information about the Python-bugs-list
mailing list