Re: [Python-Dev] Remove tempfile.mktemp()

2019年3月19日 08:06:07 -0700

Le 19/03/2019 à 15:52, Guido van Rossum a écrit :
> 
> If all you need is a random name, why not just use a random number
> generator?
> E.g. I see code like this:
> 
>   binascii.hexlify(os.urandom(8)).decode('ascii')
mktemp() already does this, probably in a better way, including the
notion of prefix, suffix, and parent directory. Why should I have to
reimplement it myself?
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to