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 Yaroslav.Halchenko
Recipients Yaroslav.Halchenko, mdk, rhettinger
Date 2017-12-12.14:21:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513088507.94.0.213398074469.issue32276@psf.upfronthosting.co.za>
In-reply-to
Content
I have spent too much time in Python to be able to compare to other languages ;)  but anywhere I saw RNG being used, there was a way to seed it or to provide a state.  tempfile provides no such API

my usecase -- comparison of logs from two runs where I need to troubleshoot the point of divergence in execution .  Logs in our case (datalad) contain temporary directory filenames, so they always "diff" and I need to sift through them or to come up with some obscure sed regex to unify them.  I found in other projects of ours a really handy to be able to seed RNG globally so two runs result in identical execution path -- allows for easier reproducibility/comparison.  But when it got to those temporary filenames -- apparently I could not make it happen and would need to resort to some heavy monkey patching.
History
Date User Action Args
2017-12-12 14:21:47Yaroslav.Halchenkosetrecipients: + Yaroslav.Halchenko, rhettinger, mdk
2017-12-12 14:21:47Yaroslav.Halchenkosetmessageid: <1513088507.94.0.213398074469.issue32276@psf.upfronthosting.co.za>
2017-12-12 14:21:47Yaroslav.Halchenkolinkissue32276 messages
2017-12-12 14:21:47Yaroslav.Halchenkocreate