[issue33998] random.randrange completely ignores the step argument when stop is None

2018-07-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the contribution, but I'm going to decline. The parallel function range() doesn't even accept keyword arguments. I don't see any reason to support an oddity such as "randrange(10, step=2)" in part because the meaning isn't clear and in par

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: My vote is for "that's just the way it is, it works fine for just about everyone most of the time". In pure Python code, it is expensive to try to handle or defend against all possible input variations. -- assignee: -> tim.peters nosy: +tim.pe

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Dan Snider
Change by Dan Snider : -- keywords: +patch pull_requests: +7616 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Steven D'Aprano
Steven D'Aprano 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

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Dan Snider
New submission from Dan Snider : This "bug" is present even in 2.7. I have a really hard time believing that, even if it would be incredibly rare for someone to stumble upon this, may others haven't noticed this rather glaring flaw in the code. I couldn't find any similar issues though. My