New submission from Robert Lehmann <lehman...@gmail.com>: As raised recently on python-ideas [1]_, an itertools method fixing iterators to a certain length might be handy (where fixing is either cutting elements off or appending values).
I appended a patch implementing this feature in Python/C, unit tests and documentation included. .. [1] http://thread.gmane.org/gmane.comp.python.ideas/2472/focus=2479 ---------- components: Library (Lib) files: fixlen.patch keywords: patch messages: 80372 nosy: lehmannro severity: normal status: open title: itertools.fixlen type: feature request versions: Python 2.7 Added file: http://bugs.python.org/file12833/fixlen.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5034> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com