REPOST: Re: 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

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-nwblwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!newsfeed.direct.ca!look.ca!newsfeed.dacom.co.kr!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: aahz at panix.com (Aahz Maruch)
Newsgroups: comp.lang.python
Subject: cmsg cancel <a0kqrh$bv$1 at panix3.panix.com>
Control: cancel <a0kqrh$bv$1 at panix3.panix.com>
Date: Mon, 31 Dec 2001 03:47:36 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.a0kqrh$bv$1 at panix3.panix.com>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774703 27193 211.57.49.2 (31 Dec 2001 04:58:23 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 04:58:23 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list