[issue31138] dir argument NamedTemporaryFile should accept a pathlib.Path

2017-08-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue31138] dir argument NamedTemporaryFile should accept a pathlib.Path

2017-08-08 Thread Wilfredo Sanchez
Wilfredo Sanchez added the comment: Huh… my apologies. I must have been fiddling with an older interpreter REPL without noticing when I ran into this. Never mind me. :-) -- stage: -> resolved status: pending -> closed ___ Python tracker

[issue31138] dir argument NamedTemporaryFile should accept a pathlib.Path

2017-08-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Doesn't it support it? >>> import tempfile, pathlib >>> tempfile.NamedTemporaryFile(dir=pathlib.Path('/tmp')) -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue31138] dir argument NamedTemporaryFile should accept a pathlib.Path

2017-08-07 Thread Wilfredo Sanchez
New submission from Wilfredo Sanchez: Or, better, any object which conforms to the file system path protocol (__fspath__). -- components: Library (Lib) messages: 299886 nosy: wsanchez priority: normal severity: normal status: open title: dir argument NamedTemporaryFile should accept a p