This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients bup, rhettinger, steven.daprano
Date 2018-06-29.14:42:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530283372.15.0.56676864532.issue33998@psf.upfronthosting.co.za>
In-reply-to
Content
"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.
History
Date User Action Args
2018-06-29 14:42:52steven.dapranosetrecipients: + steven.daprano, rhettinger, bup
2018-06-29 14:42:52steven.dapranosetmessageid: <1530283372.15.0.56676864532.issue33998@psf.upfronthosting.co.za>
2018-06-29 14:42:52steven.dapranolinkissue33998 messages
2018-06-29 14:42:52steven.dapranocreate