[issue9379] random.randrange behaviour problems

Raymond Hettinger report at bugs.python.org
Mon Jul 26 01:41:23 CEST 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I'm happy to improve the docs and docstring a bit to match the description for range().

I don't want to change any of the keyword arguments because it can break code that currently works and has been working for ages.  It's a fact of life that the range() signature is complicated to express in pure Python.  I don't feel any need to reformulate the existing code -- it has been working fine for people for a *very* long time.   Conceptually, it's misleading but in practice people seem to just get it.

----------
assignee:  -> rhettinger
priority: normal -> low

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9379>
_______________________________________


More information about the Python-bugs-list mailing list