[issue11397] os.path.realpath() may produce incorrect results

STINNER Victor report at bugs.python.org
Fri Apr 15 01:20:18 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

I tested issue11397_py32.patch:
 - you should use os.fsencode(sep) instead of sep.encode()
 - os.path.realpath('../'*10) raises IndexError('pop from empty list') instead of giving '/'

----------

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


More information about the Python-bugs-list mailing list