Message147680
"Use regular expressions for more advanced stripping than what the .strip method provides."
So I guess this brings me back to my original issue. I'm not looking for particularly advanced stripping. I just want to remove all whitespace and other non-printing characters. I personally can never think of a time when I wouldn't want this (especially with isspace). Maybe in some applications, the control characters are useful and shouldn't be stripped, but I would argue that _that_ is the more advanced use case for most people.
Thus strip and isspace are now unusable methods in Python for common use cases. This seems unfortunate.
I can understand the claims of feature creep. I even understand that having isspace compare itself against non-whitespace characters may seem counter-intuitive on its face. But certainly there must be a satisfactory remedy here. |
|
Date |
User |
Action |
Args |
2011-11-15 15:07:44 | mankyd | set | recipients:
+ mankyd, loewis, rhettinger, ezio.melotti |
2011-11-15 15:07:44 | mankyd | set | messageid: <1321369664.5.0.609093664254.issue13391@psf.upfronthosting.co.za> |
2011-11-15 15:07:43 | mankyd | link | issue13391 messages |
2011-11-15 15:07:43 | mankyd | create | |
|