[issue31137] Add a path attribute to NamedTemporaryFile

Serhiy Storchaka report at bugs.python.org
Tue Aug 8 01:30:39 EDT 2017


Serhiy Storchaka added the comment:

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.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31137>
_______________________________________


More information about the Python-bugs-list mailing list