A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/022893.html below:

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

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.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4