STINNER Victor <[EMAIL PROTECTED]> added the comment:
path=path is useless most of the code (unicode path), this code is
faster if both cases (bytes or unicode)!
if not isinstance(path, str):
path = bytes(path)
* a if b else c: unicode=0.756730079651; bytes=1.93071103096
* if test: path=...: unicode=0.681571006775; bytes=1.88843798637
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3187>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com