This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients Ronny.Pfannschmidt, eric.araujo, ezio.melotti, pitrou
Date 2012-03-01.05:47:12
SpamBayes Score 0.010881093
Marked as misclassified No
Message-id <1330580833.35.0.249502546945.issue14161@psf.upfronthosting.co.za>
In-reply-to
Content
Funny one :D  Reproduced on linux:

  >>> open('/tmp/t\nest', 'w')
  <open file '/tmp/t
  est', mode 'w' at 0x7f11268a19c0>

file_repr in Objects/fileobject.c calls http://docs.python.org/c-api/unicode#PyUnicode_AsUnicodeEscapeString, equivalent to encode('unicode-escape'), so backslashes should be escaped.
History
Date User Action Args
2012-03-01 05:47:13eric.araujosetrecipients: + eric.araujo, pitrou, ezio.melotti, Ronny.Pfannschmidt
2012-03-01 05:47:13eric.araujosetmessageid: <1330580833.35.0.249502546945.issue14161@psf.upfronthosting.co.za>
2012-03-01 05:47:12eric.araujolinkissue14161 messages
2012-03-01 05:47:12eric.araujocreate