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
tarfile.py: dict order dependency #43426
Comments
When guessing the type of a file, tarfile.py tries to This didn't show up so far because, by chance, the order for comptype in reversed(cls.OPEN_METH): |
Logged In: YES I took a look at tarfile.py and though there is this comment # This concept allows one to subclass TarFile without losing because adding items to OPEN_METH could change the order and +1 for renaming OPEN_METH to _OPEN_METH and making it a list +0 on changing the two tups from ('typename', 'funcname') to |
Logged In: YES If possible, I would prefer that the constructors were fixed |
Logged In: YES The invidual openers could tell() the fileobj and revert But basically open() isn't as extensible as it seems. I'm guessing that isn't a problem in practice or someone |
Logged In: YES added patch 1504073 because SF won't let just anyone attach |
Fixed with said patch. |
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: