[Python-ideas] Define __fspath__() for NamedTemporaryFile and TemporaryDirectory

Juancarlo Añez apalala at gmail.com
Thu Jun 8 11:44:50 EDT 2017


On Thu, Jun 8, 2017 at 9:42 AM, Antoine Pietri <antoine.pietri1 at gmail.com>
wrote:

> My proposal is to define __fspath__() for TemporaryDirectory and
> NamedTemporaryFile so that we can pass those directly to the library
> functions instead of having to use the .name attribute explicitely.
>

+1


-- 
Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170608/c03b1435/attachment.html>


More information about the Python-ideas mailing list