random vs whrandom (was RE: [Python-Dev] Unittests)

Tim Peters tim.one@comcast.net
Tue, 09 Apr 2002 20:26:25 -0400

>>>> whrandom.py

>>> This is a deprecated module, no?

As its docs say, "Deprecated since release 2.1. Use random instead."
Somebody toss in DeprecationWarnings or it will never go away.

>> Almost -- its *implementation* remains the basis of random.py.

No, whrandom.py has been dead weight since 2.1.  Delete it from your hard
drive, and random.py won't even notice.

> Except Zope still uses it quite a bit for some reason.

A lot of people still seem to use it for some reason.  It's baffling.  When
I decoupled whrandom from random for 2.1, I added a bunch of "cool stuff"
exclusively to the latter to try to induce people to switch.  There must be
a popular book or guide out there using whrandom, as newcomers to the Tutor
list spontaneously post code importing whrandom.