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

Serhiy Storchaka report at bugs.python.org
Mon Sep 27 08:13:16 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

That you need to override the __new__ method? I don't know whether it is documented specially. But the constructor calls __new__() and then __init__(). If changing the argument in __init__ does not help, it is because it was already proceeded in __new__.

If you ask about changes in 3.11, it is a side effect of issue44260.

----------

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


More information about the Python-bugs-list mailing list