[issue33144] random._randbelow optimization

Tim Peters report at bugs.python.org
Mon Mar 26 23:41:05 EDT 2018


Tim Peters <tim at python.org> added the comment:

I'm the wrong guy to ask about that.  Since I worked at Zope Corp, my natural inclination is to monkey-patch everything - but knowing full well that will offend everyone else ;-)

That said, this optimization seems straightforward to me:  two distinct method implementations for two very different approaches that have nothing in common besides the method name & signature.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33144>
_______________________________________


More information about the Python-bugs-list mailing list