[issue22719] os.path.isfile & os.path.exists bug in while loop
eryksun
report at bugs.python.org
Sat Oct 25 00:12:40 CEST 2014
eryksun added the comment:
> i.e. the object id is the same after appending
Actually, that's wrong. bak_path is a compact string. So the whole object is realloc'd, and the base address (i.e. id) could change. Check PyUnicode_AsUnicode even if the id changes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22719>
_______________________________________
More information about the Python-bugs-list
mailing list