Issue 31137: Add a path attribute to NamedTemporaryFile (original) (raw)
Issue31137
Created on 2017-08-08 00:59 by wsanchez, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg299884 - (view) | Author: Wilfredo Sanchez (wsanchez) | Date: 2017-08-08 00:59 |
Add a path attribute to NamedTemporaryFile which provides a pathlib.Path object pointing to the file on disk. | ||
msg299898 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-08-08 05:30 |
You can just pass the name attribute to the pathlib.Path constructor. Adding a name attribute will not allow you to do what you can't do now, but will increase the coupling between the tempfile and pathlib modules. The purpose of introducing the path protocol was avoiding creating such couplings. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:49 | admin | set | github: 75320 |
2022-01-04 23:12:01 | iritkatriel | set | status: open -> closedresolution: rejectedstage: resolved |
2017-08-08 05:30:39 | serhiy.storchaka | set | nosy: + serhiy.storchakamessages: + |
2017-08-08 00:59:25 | wsanchez | create |