[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Remove tempfile.mktemp()

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?