<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/random.py, branch v2.4a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/random.py?h=v2.4a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/random.py?h=v2.4a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-06-07T02:07:15Z</updated>
<entry>
<title>Fix typo in comment.</title>
<updated>2004-06-07T02:07:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-06-07T02:07:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5dae505bbd59641a948c81bea981e7c44d4c2343'/>
<id>urn:sha1:5dae505bbd59641a948c81bea981e7c44d4c2343</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #964230:  random.choice([]) should return more intelligible exception</title>
<updated>2004-06-05T14:53:22Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-06-05T14:53:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9021c955951c63ef3075b4751615af329427d3ec'/>
<id>urn:sha1:9021c955951c63ef3075b4751615af329427d3ec</id>
<content type='text'>
Add a comment to make the traceback less mysterious.
</content>
</entry>
<entry>
<title>Reflow long line.</title>
<updated>2004-02-23T17:27:57Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2004-02-23T17:27:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2b55d35850e3e8e0b28aba7878d3f9122a7907ac'/>
<id>urn:sha1:2b55d35850e3e8e0b28aba7878d3f9122a7907ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2004-01-18T20:29:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-01-18T20:29:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58eb11cf62dd04ccc2c364b62fd51b4265e2e203'/>
<id>urn:sha1:58eb11cf62dd04ccc2c364b62fd51b4265e2e203</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement and apply PEP 322, reverse iteration</title>
<updated>2003-11-06T14:06:48Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-11-06T14:06:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=85c20a41dfcec04d161ad7da7260e7b94c62d228'/>
<id>urn:sha1:85c20a41dfcec04d161ad7da7260e7b94c62d228</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Minor fixup.  "Random" was listed twice in __all__.</title>
<updated>2003-10-12T17:14:11Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-12T17:14:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=411c60234974da975b0b1fbf62e362a31f6e4b3c'/>
<id>urn:sha1:411c60234974da975b0b1fbf62e362a31f6e4b3c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #812202:  randint is always even</title>
<updated>2003-10-05T09:09:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-05T09:09:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2f726e9093381572b21edbfc42659ea89fbdf686'/>
<id>urn:sha1:2f726e9093381572b21edbfc42659ea89fbdf686</id>
<content type='text'>
* Added C coded getrandbits(k) method that runs in linear time.
* Call the new method from randrange() for ranges &gt;= 2**53.
* Adds a warning for generators not defining getrandbits() whenever they
  have a call to randrange() with too large of a population.
</content>
</entry>
<entry>
<title>SF bug #801342:  Bug (documentation or real, your choice) in random.sample.</title>
<updated>2003-09-06T04:25:54Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-09-06T04:25:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=66d09f1b3029d9cf975ccf26c437c9fb2605db91'/>
<id>urn:sha1:66d09f1b3029d9cf975ccf26c437c9fb2605db91</id>
<content type='text'>
random.sample() uses one of two algorithms depending on the ratio of the
sample size to the population size.  One of the algorithms accepted any
iterable population argument so long as it defined __len__().  The other
had a stronger requirement that the population argument be indexable.

While it met the documentation specifications which insisted that the
population argument be a sequence, it made random.sample() less usable
with sets.  So, the second algorithm was modified to coerce non-indexable
iterables and dictionaries into a tuple before proceeding.
</content>
</entry>
<entry>
<title>Eliminate unnecessary eval() in tests</title>
<updated>2003-08-30T01:24:19Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-08-30T01:24:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=62297132215490e9cb406e1a21f03aff40d421cb'/>
<id>urn:sha1:62297132215490e9cb406e1a21f03aff40d421cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #778964:  bad seed in python 2.3 random</title>
<updated>2003-08-09T18:30:57Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-08-09T18:30:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3081d59f920229b26293c7a3ee3f1a9da0da53e9'/>
<id>urn:sha1:3081d59f920229b26293c7a3ee3f1a9da0da53e9</id>
<content type='text'>
The default seed is time.time().
Multiplied by 256 before truncating so that fractional seconds are used.
This way, two successive calls to random.seed() are much more likely
to produce different sequences.
</content>
</entry>
</feed>
