Message224638
This is too specialized function to be included in the stdlib ar added as a method to base class.
There are simpler and faster implementations of this function:
def simplify(s):
return ' '.join(s.strip().split())
or
def simplify(s):
return re.sub(r'\s+', ' ', s.strip())
Due to they simplicity there is no need to add them in Python. |
|
Date |
User |
Action |
Args |
2014-08-03 13:39:09 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, l3u |
2014-08-03 13:39:09 | serhiy.storchaka | set | messageid: <1407073149.91.0.108691225919.issue22129@psf.upfronthosting.co.za> |
2014-08-03 13:39:09 | serhiy.storchaka | link | issue22129 messages |
2014-08-03 13:39:09 | serhiy.storchaka | create | |
|