Movatterモバイル変換
[0]ホーム
[Python-Dev] Remove tempfile.mktemp()
Antoine Pitrouantoine at python.org
Tue Mar 19 10:57:15 EDT 2019
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 thenotion of prefix, suffix, and parent directory. Why should I have toreimplement it myself?RegardsAntoine.
More information about the Python-Devmailing list
[8]ページ先頭