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

STINNER Victor report at bugs.python.org
Wed Apr 29 12:10:34 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

I created this issue to propose PR 19631 (BaseRandom class) which looked like as a good idea to me: simple base class which fix different kind of problems.

But it seems like other people would prefer a complete rewrite from scratch and require a PEP.

I abandonned my BaseRandom PR #19631 and my PR 19700 since there is no clear consensus on these changes. I'm not interested to write a PEP to redesign the module random.

I also close this issue as rejected. If someone wants to enhance the random module, it seems like a PEP is needed: at least, please open a separated issue.

I wrote PR #19797 "Remove C implementation of Random.randbytes()" to address initial Raymond's concern on randbytes() implementation:
https://bugs.python.org/issue40286#msg366860

----------
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list