Mark Dickinson <dicki...@gmail.com> added the comment:

[Tim]

> Who subclasses Random in the real world?  Who would want to?

Um. Me?

Or at least, I *wanted* to, when I was playing around with PCG. (See 
https://github.com/mdickinson/pcgrandom.) But after running into the same 
inelegancies (please note that I'm not calling them *issues*) as Victor, I 
decided to avoid the subclassing. That led to other inelegancies, like have to 
reproduce the code for all the various distribution sampling methods (beta, 
gamma, ...).  But I'm okay with that; this was just a toy project.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40346>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to