[issue40346] Add random.BaseRandom to ease implementation of subclasses

Tim Peters report at bugs.python.org
Fri Apr 24 13:13:24 EDT 2020


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

Mark, you don't count ;-)  Neither do I.  Of course I've subclassed Random too, to experiment with other base generators (including PCG variants).  But they're throwaways, and I don't care that it can require staring at the code to make as many changes as needed.  Developers _of_ Python don't need things to be trivial to make quick progress.

So I remain where I was:  +0, provided there are no notable runtime regressions.  Nice to have (hence "+"), but don't really care if it never happens (hence "0").

As to what numpy does, I'm always in favor of following their lead when possible and Pythonic.

----------

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


More information about the Python-bugs-list mailing list