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 mankyd
Recipients ezio.melotti, loewis, mankyd, rhettinger
Date 2011-11-15.15:07:43
SpamBayes Score 1.6168079e-07
Marked as misclassified No
Message-id <1321369664.5.0.609093664254.issue13391@psf.upfronthosting.co.za>
In-reply-to
Content
"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.
History
Date User Action Args
2011-11-15 15:07:44mankydsetrecipients: + mankyd, loewis, rhettinger, ezio.melotti
2011-11-15 15:07:44mankydsetmessageid: <1321369664.5.0.609093664254.issue13391@psf.upfronthosting.co.za>
2011-11-15 15:07:43mankydlinkissue13391 messages
2011-11-15 15:07:43mankydcreate