[issue40346] Redesign random.Random class inheritance
STINNER Victor
report at bugs.python.org
Mon Apr 20 19:31:23 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
Attached PR 19631 adds random.BaseRandom. random.SystemRandom now inherits from BaseRandom and so no longer inherits from _random.Random: an instance now only takes 48 bytes of memory, rather than 2568 bytes (on x86-64).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40346>
_______________________________________
More information about the Python-bugs-list
mailing list