Serhiy Storchaka added the comment: 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. ---------- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22129> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com