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 serhiy.storchaka
Recipients l3u, serhiy.storchaka
Date 2014-08-03.13:39:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407073149.91.0.108691225919.issue22129@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-08-03 13:39:09serhiy.storchakasetrecipients: + serhiy.storchaka, l3u
2014-08-03 13:39:09serhiy.storchakasetmessageid: <1407073149.91.0.108691225919.issue22129@psf.upfronthosting.co.za>
2014-08-03 13:39:09serhiy.storchakalinkissue22129 messages
2014-08-03 13:39:09serhiy.storchakacreate