Message216687
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 |
|
Date |
User |
Action |
Args |
2014-04-17 13:54:45 | Tito.Bouzout | set | recipients:
+ Tito.Bouzout, ezio.melotti, mrabarnett |
2014-04-17 13:54:45 | Tito.Bouzout | set | messageid: <1397742885.45.0.765313151501.issue21283@psf.upfronthosting.co.za> |
2014-04-17 13:54:45 | Tito.Bouzout | link | issue21283 messages |
2014-04-17 13:54:45 | Tito.Bouzout | create | |
|