[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>:

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

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

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>

More information about the New-bugs-announce mailing list