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 rhettinger, serhiy.storchaka, tim.peters
Date 2020-04-09.14:42:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586443349.52.0.011091886017.issue40239@roundup.psfhosted.org>
In-reply-to
Content
It would be useful to have a function in itertools to merge sorted iterables.

    merge_sorted(*iterables, key=None, reverse=False):

It should emit the same items as sorted(tee(*iterables), key=key, reverse=reverse) if iterables are sorted with key and reverse. But it should use the amount of memory O(M) where M is the number of iterables, and support infinite iterables.
History
Date User Action Args
2020-04-09 14:42:29serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger
2020-04-09 14:42:29serhiy.storchakasetmessageid: <1586443349.52.0.011091886017.issue40239@roundup.psfhosted.org>
2020-04-09 14:42:29serhiy.storchakalinkissue40239 messages
2020-04-09 14:42:29serhiy.storchakacreate