New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify tarfile iterator #66423
Comments
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. |
LGTM at a quick glance. Can we have a formal patch review please. |
The code changes look correct and worthwhile to me. Just added some suggestions for the comments, which would become out of date. |
The patch doesn't fix a bug and doesn't add new feature. It just rewrites the code in more clear manner (in my eyes). So I leave applying or rejecting the patch on Lars. |
@serhiy could you update the patch with the review feedback? Thanks. Moving back to patch review. Lars hasn't commented on this in a year, so I think we should go ahead once the patch is fixed: e.g. you should update the comments and commit it directly. |
Updated patch addresses Martin's comments. Thanks Martin. |
The patch looks good and passes tests. Go ahead and apply. |
New changeset a8f24e26abc7 by Serhiy Storchaka in branch 'default': |
Thanks Martin and Raymond for reviews. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: