[issue4927] Inconsistent unicode repr for fileobject
Terry J. Reedy
report at bugs.python.org
Fri Jan 16 11:02:48 CET 2009
Terry J. Reedy <tjreedy at udel.edu> added the comment:
I think path names should be printed with forward slashes on Windows as
well as elsewhere to avoid this type of confusion, and this.
>>> sb
'tmp\\foo'
>>> print(sb)
tmp\foo
(Of course I know why.)
Users have been advised on python-list by various people to enter
literal paths with forward slashes for the same reason. Printing them
out that way would encourage and reinforce this.
----------
nosy: +tjreedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4927>
_______________________________________
More information about the Python-bugs-list
mailing list