Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

"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.

----------
nosy: +rhettinger, steven.daprano

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33998>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to