Author lepaperwan
Recipients lepaperwan
Date 2018-09-14.17:42:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536946920.27.0.956365154283.issue34686@psf.upfronthosting.co.za>
In-reply-to
Content
I'm attempting to leverage PEP 552 to make the core interpreter build process more deterministic. However, the standard Python Makefile uses `python -E` when calling the compileall (and all other setup scripts), which forces randomization since it can only be turned off through environment variables (which in turn leads to nondeterministic behaviour as noted in PEP 552 [1],[2]).

Also, is adding a flag that disables randomization something that would be acceptable? Or are options to the core interpreter to be kept to a minimum and this does not represent a large enough use-case?

This would basically hold in Modules/main.c in something as short as:
+ case 'r':
+     config->use_hash_seed = 1;
+     config->hash_seed = 0;
+     break;
History
Date User Action Args
2018-09-14 17:42:00lepaperwansetrecipients: + lepaperwan
2018-09-14 17:42:00lepaperwansetmessageid: <1536946920.27.0.956365154283.issue34686@psf.upfronthosting.co.za>
2018-09-14 17:42:00lepaperwanlinkissue34686 messages
2018-09-14 17:42:00lepaperwancreate