homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mark.dickinson, pitrou, rhettinger, serhiy.storchaka, tim.peters, vstinner
Date 2020年04月21日.15:31:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587483088.1.0.379988317318.issue40346@roundup.psfhosted.org>
In-reply-to
Content
It may be time to start emitting a warning if a Random subclass overrides random() but not getrandbits() or vice versa.
If you only override random(), methods which rely on generating random integers will use worse algorithm (slightly less uniform). If you only override getrandbits(), -- it is even worse, methods which rely on generating random floating point number will be not affected.
History
Date User Action Args
2020年04月21日 15:31:28serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, pitrou, vstinner
2020年04月21日 15:31:28serhiy.storchakasetmessageid: <1587483088.1.0.379988317318.issue40346@roundup.psfhosted.org>
2020年04月21日 15:31:28serhiy.storchakalinkissue40346 messages
2020年04月21日 15:31:27serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /