Georg Brandl added the comment:

`path = str(path)` is minimal, but has the side effect of accepting almost any 
object, which is definitely not what you'd like ("where did that file named 
'<type object at ...>' come from?!")

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22570>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to