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 Tito.Bouzout
Recipients Tito.Bouzout, ezio.melotti, mrabarnett
Date 2014-04-17.13:54:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397742885.45.0.765313151501.issue21283@psf.upfronthosting.co.za>
In-reply-to
Content
Hello!

I got a report that the character "\" was removed from a string using the following code

> "\\server\path\to".strip(r'"\'<>') 

At first insight, looks like a bug, because I don't expect the use of the escape character at all. Then I noticed, that our mistake there is that the "strip" argument should be a "string" not a REGEXP.

Kinda weird to read, and I've no idea if this is expected behaviour in Python, as I'm relatively very new. So just informing, 

Kind regards, 

-- 
Tito
History
Date User Action Args
2014-04-17 13:54:45Tito.Bouzoutsetrecipients: + Tito.Bouzout, ezio.melotti, mrabarnett
2014-04-17 13:54:45Tito.Bouzoutsetmessageid: <1397742885.45.0.765313151501.issue21283@psf.upfronthosting.co.za>
2014-04-17 13:54:45Tito.Bouzoutlinkissue21283 messages
2014-04-17 13:54:45Tito.Bouzoutcreate