[issue33228] Use Random.choices in tempfile

Wolfgang Maier report at bugs.python.org
Thu Apr 5 07:47:19 EDT 2018


Wolfgang Maier <wolfgang.maier at biologie.uni-freiburg.de> added the comment:

@serhiy as I understand issue 33228, the double rounding problem potentially causing an IndexError can only affect choices() if the len of the sequence to choose from is greater than 2049, but the string in question here is only 37 characters long.
Alternatively, choices may fail with certain weights (https://bugs.python.org/msg275594), but _RandomNameSequence is not using weights.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33228>
_______________________________________


More information about the Python-bugs-list mailing list