<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/random.py, branch 2.3</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=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/random.py?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-10-05T23:35:38Z</updated>
<entry>
<title>SF bug #812202:  randint is always even</title>
<updated>2003-10-05T23:35:38Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-05T23:35:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c601117f38aa5e1bcaeb81571eb183f97dca09f3'/>
<id>urn:sha1:c601117f38aa5e1bcaeb81571eb183f97dca09f3</id>
<content type='text'>
* Extend rangrange() to return meaningful results when the range is
  larger than 2**53.  Only applies to the MersenneTwister.  WichmannHill
  was left alone in the absence of a proof showing how multiple calls
  could be combined to produce long bit streams.

* WichmannHill was missing from __all__.
</content>
</entry>
<entry>
<title>Set the warnings stacklevel to two.</title>
<updated>2003-09-08T19:15:43Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-09-08T19:15:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=07759e3786d3c26afb52d16ed794efa856c5beda'/>
<id>urn:sha1:07759e3786d3c26afb52d16ed794efa856c5beda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #801342:  Bug (documentation or real, your choice) in random.sample.</title>
<updated>2003-09-05T21:40:30Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-09-05T21:40:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0b0aae087a3e3bb9fb109454f6deb2ab171f7eba'/>
<id>urn:sha1:0b0aae087a3e3bb9fb109454f6deb2ab171f7eba</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>SF bug #778964:  bad seed in python 2.3 random</title>
<updated>2003-08-09T18:20:16Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-08-09T18:20:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8cf915e9fb83678e9715394d0a5c4bb8221852f8'/>
<id>urn:sha1:8cf915e9fb83678e9715394d0a5c4bb8221852f8</id>
<content type='text'>
The default seed is time.time().
Multiplied by 256 before truncating so that fractional seconds are used.
This way, two consequetive calls to random.seed() are much more likely
to produce different sequences.
</content>
</entry>
<entry>
<title>SF bug #759889:  Pickling of Random is broken</title>
<updated>2003-06-24T20:29:04Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-24T20:29:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5f078ff7f0c6bb5086fae077379fc79729c34d2d'/>
<id>urn:sha1:5f078ff7f0c6bb5086fae077379fc79729c34d2d</id>
<content type='text'>
* Implement __reduce__() to support pickling.
* Add a test case to prove a successful roundtrip through pickle.
</content>
</entry>
<entry>
<title>randrange():  Repaired my overly optimistic rewrite, and added comments</title>
<updated>2003-06-19T03:46:46Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-06-19T03:46:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=76ca1d428f96284ed58f4523b698ed95c6fdbdb2'/>
<id>urn:sha1:76ca1d428f96284ed58f4523b698ed95c6fdbdb2</id>
<content type='text'>
explaining what's wrong with the two simpler variants.
</content>
</entry>
<entry>
<title>randrange():  2.3 can no longer raises OverflowError on an int() call, so</title>
<updated>2003-06-19T03:23:06Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-06-19T03:23:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=afb8979771e78ef8fe3d610c023463f7ec4f3e1b'/>
<id>urn:sha1:afb8979771e78ef8fe3d610c023463f7ec4f3e1b</id>
<content type='text'>
some of this code because useless, and (worse) could return a long
instead of int (in Zope that's important, because a long can't be used
as a key in an IOBTree or IIBTree).
</content>
</entry>
<entry>
<title>SF bug #753602:  random.sample not properly documented</title>
<updated>2003-06-13T07:01:51Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-13T07:01:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fdbe5223b7402ee34c4f0c06caa6faabd9e73e35'/>
<id>urn:sha1:fdbe5223b7402ee34c4f0c06caa6faabd9e73e35</id>
<content type='text'>
The docs were fine but the "int=int" in the function call was both
ugly and confusing.  Moved it inside the body of the function definition.
</content>
</entry>
<entry>
<title>'sum' is no longer a good variable name.  Use 'total' instead.</title>
<updated>2003-05-24T17:26:02Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-05-24T17:26:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b98154e4243a8d73f758dfee9a81bbe36ddc05cb'/>
<id>urn:sha1:b98154e4243a8d73f758dfee9a81bbe36ddc05cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Migrate sample distribution test from random.py to test_random.py.</title>
<updated>2003-01-17T17:23:23Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-01-17T17:23:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7b0cf76b72a499c692e444c75b4833475fa56db0'/>
<id>urn:sha1:7b0cf76b72a499c692e444c75b4833475fa56db0</id>
<content type='text'>
* Use Sets module to more clearly articulate a couple of tests.
</content>
</entry>
</feed>
