New submission from Serhiy Storchaka: TarFile iteration can be simplified by using a generator instead of iterator class. Attached patch get rid of the TarIter class and decrease sources size by 16 lines.
---------- components: Library (Lib) files: tarfile_tariter.diff keywords: patch messages: 225521 nosy: lars.gustaebel, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Simplify tarfile iterator type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file36412/tarfile_tariter.diff _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue22227> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
