Message320718
"I have a really hard time believing that [...] others haven't noticed this rather glaring flaw in the code."
*shrug* Easy or hard for you to believe, nevertheless this same quote-unquote "flaw" goes back to Python 1.5 or older. Whether that makes it a flaw, a bug or a feature, I don't know.
The documentation does say:
"Keyword arguments should not be used because the
function may use them in unexpected ways."
https://docs.python.org/3/library/random.html#random.randrange
so I'd suggest that the behaviour of randrange(10, seed=2) is currently considered undefined. |
|
Date |
User |
Action |
Args |
2018-06-29 14:42:52 | steven.daprano | set | recipients:
+ steven.daprano, rhettinger, bup |
2018-06-29 14:42:52 | steven.daprano | set | messageid: <1530283372.15.0.56676864532.issue33998@psf.upfronthosting.co.za> |
2018-06-29 14:42:52 | steven.daprano | link | issue33998 messages |
2018-06-29 14:42:52 | steven.daprano | create | |
|