[New-bugs-announce] [issue14161] python2 file __repr__ does not escape filename

Ronny Pfannschmidt report at bugs.python.org
Wed Feb 29 17:43:30 CET 2012


New submission from Ronny Pfannschmidt <ronny.pfannschmidt at gmail.com>:

behaviour:
>>> name = 'woo\raa'
>>> open(name, 'w')
aa', mode 'w' at 0x295a8a0>

expected:
>>> name = 'woo\raa'
>>> open(name, 'w')
<open file 'woo\raa', mode 'w' at 0x295a8a0>

note:
don't ask why i tried this chunk of code in the first place

----------
messages: 154649
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
title: python2 file __repr__ does not escape filename
type: behavior
versions: Python 2.6, Python 2.7

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


More information about the New-bugs-announce mailing list