[New-bugs-announce] [issue44843] Add CLI flag to disable hash randomization
Filipe Laíns
report at bugs.python.org
Thu Aug 5 14:28:53 EDT 2021
New submission from Filipe Laíns <lains at riseup.net>:
There are select use-cases where hash randomization is undesirable, having a CLI option to switch it off would be very helpful.
One example would be packaging, where hash randomization will make the bytecode unreproducible.
Currently, we have to set PYTHONHASHSEED to a constant value. Having a CLI option (lets say -Z) would allow use to do
python -Zm install artifact.whl
instead of
PYTHONHASHSEED=0 python -m install artifact.whl
Which is something that I have to do lots of places.
----------
messages: 399026
nosy: FFY00
priority: normal
severity: normal
status: open
title: Add CLI flag to disable hash randomization
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44843>
_______________________________________
More information about the New-bugs-announce
mailing list