Repository navigation
Conversation
…ot.filename is None
jaraco
left a comment
There was a problem hiding this comment.
As you've noted, there are some design decisions to make. I'm going to take those back to the issue to discuss.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
Given the history I've recently been reminded of in #100609, I'm going to close this PR. Hang onto the branch, though, in case we decide to go with something like you've drafted. Thanks for understanding. |
Here are some small updates to
zipfile.Pathto prevent them from raising exceptions when Path-objects that are based on in-memory zipfiles are printed.I set the printed filename to
:memory:to mirror the behaviour of in-memory sqlite3 databases. However, it may also make sense to set the name to\0(or include\0in the name) to make it abundantly clear that this is no file.zipfile.Pathhas only partial compatibilityio.BytesIO#130120