[issue26362] Approved API for creating a temporary file path
Ben Finney
report at bugs.python.org
Mon Feb 29 17:09:26 EST 2016
Ben Finney added the comment:
Serhiy Storchaka
> mktemp is deprecated, and I think we will get rid of it when 2.7 will be out of use.
That's fine. This is not a request to retain ‘tempfile.mktemp’.
I confused matters in my initial message, so your confusion is understandable on this point. To repeat:
The request is for a “get the next path generated by a ‘tempfile._get_candidate_names’ generator”, with an approved and documented public API. One suggested name is ‘tempfile.makepath’.
> Do you want to add new deprecated from the start function?
No. I'm asking for already-implemented and currently-maintained (i.e. not deprecated) standard library code, that is currently neither public nor documented, to gain a public API.
Ethan Furman:
> I don't see any problem with this. Patches welcome.
Thank you, I'll work on a patch soon.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26362>
_______________________________________
More information about the Python-bugs-list
mailing list