This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Yaroslav.Halchenko, mdk, rhettinger
Date 2017-12-16.07:55:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513410951.32.0.213398074469.issue32276@psf.upfronthosting.co.za>
In-reply-to
Content
This seems ill-advised:

* If a deterministic filename is needed, tempfile probably shouldn't be used.

* Mock objects are typically used when alternative behavior is needed for testing.

* The proposed feature would preclude a possible future development path to use SystemRandom which wouldn't be able to accept a seed.

* Having the same filename used on successive runs will likely cause other problems. Generally, a user of tempname can assume that filename doesn't already exist and the proposed option would undermine that assumption.

* I suspect if there were a real need here, we would have heard about it a long time ago.  This module is over two decades old.
History
Date User Action Args
2017-12-16 07:55:51rhettingersetrecipients: + rhettinger, Yaroslav.Halchenko, mdk
2017-12-16 07:55:51rhettingersetmessageid: <1513410951.32.0.213398074469.issue32276@psf.upfronthosting.co.za>
2017-12-16 07:55:51rhettingerlinkissue32276 messages
2017-12-16 07:55:50rhettingercreate