Issue 31138: dir argument NamedTemporaryFile should accept a pathlib.Path (original) (raw)
Issue31138
Created on 2017-08-08 01:19 by wsanchez, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg299886 - (view) | Author: Wilfredo Sanchez (wsanchez) | Date: 2017-08-08 01:19 |
Or, better, any object which conforms to the file system path protocol (__fspath__). | ||
msg299897 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-08-08 05:23 |
Doesn't it support it? >>> import tempfile, pathlib >>> tempfile.NamedTemporaryFile(dir=pathlib.Path('/tmp')) <tempfile._TemporaryFileWrapper object at 0xb6fa78bc> | ||
msg299945 - (view) | Author: Wilfredo Sanchez (wsanchez) | Date: 2017-08-08 20:00 |
Huh… my apologies. I must have been fiddling with an older interpreter REPL without noticing when I ran into this. Never mind me. :-) |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:49 | admin | set | github: 75321 |
2017-08-09 04:19:53 | serhiy.storchaka | set | resolution: out of date |
2017-08-08 20:00:50 | wsanchez | set | status: pending -> closedmessages: + stage: resolved |
2017-08-08 05:23:21 | serhiy.storchaka | set | status: open -> pendingnosy: + serhiy.storchakamessages: + |
2017-08-08 01:19:17 | wsanchez | create |