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 kristjan.jonsson
Recipients kristjan.jonsson, loewis
Date 2009-01-15.22:55:16
SpamBayes Score 0.0898054
Marked as misclassified No
Message-id <>
I think the testsuite just exposed a design fault in python or a bug, if 
you will.  When we by accident had a backslash in the filename, I 
noticed the inconsistency between
'tmp\@test' and u'tmp\\@test'.
One is a valid repr, the other isn't.  It is customary when producing a 
repr() of an object, to have it contain a repr() of the any inner 
object, such as a string.  'tmp\@test' looks like a valid python literal 
but if entered, would produce an incorrect result.

Fixing the testsuite only, will just keep this discrepancy (or incorrect 
string repr maybe) hidden for longer.

It is a different story, maybe, that thee hasn't done more 
aggressive testing on filenames with backslashes.  This is far from 
being the only case that fails because of this.  Some is due to 
incorrectly coded tests.  Others are due to surprising python behaviour, 
like this one.
Date User Action Args
2009-01-15 22:55:17kristjan.jonssonsetrecipients: + kristjan.jonsson, loewis
2009-01-15 22:55:17kristjan.jonssonsetmessageid: <>
2009-01-15 22:55:16kristjan.jonssonlinkissue4927 messages
2009-01-15 22:55:16kristjan.jonssoncreate