Conversation
Make `Path.__str__()` return `self.at` rather than attempting to join the member path onto the zip file path. When the `ZipFile` is named, the new behaviour produces a more straightforward string representation that is less likely to be mistaken for a real filesystem path. When the `ZipFile` is unnamed, the new behaviour ensures that a `TypeError` isn't raised. Resolves jaraco#134
|
@jaraco courtesy ping to put this on your radar This changes behaviour of I think the change is worthwhile, because the current behaviour:
IIUC, the current implementation is designed to be "lossless" - all the arguments to What do you think? Thanks |
|
After some consideration in #134, I'd feel better about having a |
|
Released as 3.23.1 |
Make
Path.__str__()returnself.atrather than attempting to join the member path onto the zip file path.When the
ZipFileis named on the filesystem, the new behaviour produces a more straightforward string representation that is less likely to be mistaken for a real filesystem path.When the
ZipFileis unnamed, the new behaviour ensures that aTypeErrorisn't raised.Resolves #134