whrandom (was Re: Python 1.5.x vs Python 2.x.x)

Aahz Maruch aahz at panix.com
Sat Dec 29 11:26:25 EST 2001


In article <a0kq1q$r88$1 at panix3.panix.com>, Aahz Maruch <aahz at panix.com> wrote:
>In article <a0kor6$2o7u$2 at news.idiom.com>,
>James T. Dennis <jadestar at idiom.com> wrote:
>>
>> While that topic has come up: I find whrandom to be an unsightly
>> name for accessing a set of functions which is so commonly accessed
>> by novice students.  What was wrong with must calling it rand or 
>> random?  Is it pure pedantry?
>
>You're not supposed to use whrandom, although unfortunately the docs
>have been less clear about this historically than they should have been.
>The specific functionality of random is located in whrandom, to provide
>an abstraction layer in case some better pseudo-random algorithm comes
>along.

Uh, never mind, that's only half-right.  You never were supposed to use
whrandom, but the functionality has now been moved to random and the
whrandom module is deprecated.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

Tenth Virtual Anniversary: 2 days and counting



More information about the Python-list mailing list