<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/random.py, branch 3.8</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=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/random.py?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2019-06-01T08:00:15Z</updated>
<entry>
<title>bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)</title>
<updated>2019-06-01T08:00:15Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-06-01T08:00:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2085bd0877e17ad4d98a4586d5eabb6faecbb190'/>
<id>urn:sha1:2085bd0877e17ad4d98a4586d5eabb6faecbb190</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-36559: random module: optimize sha512 import (GH-12742)</title>
<updated>2019-04-10T20:18:02Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2019-04-10T20:18:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d914596a671c4b0f13641359cf43aa0d6fc05070'/>
<id>urn:sha1:d914596a671c4b0f13641359cf43aa0d6fc05070</id>
<content type='text'>
The random module now prefers the lean internal _sha512 module over hashlib
for seed(version=2) to optimize import time.

Signed-off-by: Christian Heimes &lt;christian@python.org&gt;</content>
</entry>
<entry>
<title>Convert range to repeat for choices() (#11889)</title>
<updated>2019-02-16T21:30:51Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2019-02-16T21:30:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5382203ae1bf637f9554277d5597d04805934420'/>
<id>urn:sha1:5382203ae1bf637f9554277d5597d04805934420</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Be consistent about the use of from-imports in random module (GH-11837)</title>
<updated>2019-02-13T10:04:17Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2019-02-13T10:04:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cfd31f0af20f76849bbec6185efea01c72349f2a'/>
<id>urn:sha1:cfd31f0af20f76849bbec6185efea01c72349f2a</id>
<content type='text'>
Minor code clean-up.</content>
</entry>
<entry>
<title>bpo-35782: Fix error message in randrange (GH-11620)</title>
<updated>2019-01-21T19:19:59Z</updated>
<author>
<name>Kumar Akshay</name>
<email>k.akshay9721@gmail.com</email>
</author>
<published>2019-01-21T19:19:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2433a2ab705e93f9a44f01c260d351b205a73e9d'/>
<id>urn:sha1:2433a2ab705e93f9a44f01c260d351b205a73e9d</id>
<content type='text'>
https://bugs.python.org/issue35782</content>
</entry>
<entry>
<title>bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)</title>
<updated>2018-12-24T06:54:25Z</updated>
<author>
<name>leodema</name>
<email>leodema@users.noreply.github.com</email>
</author>
<published>2018-12-24T06:54:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=63d152232e1742660f481c04a811f824b91f6790'/>
<id>urn:sha1:63d152232e1742660f481c04a811f824b91f6790</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)</title>
<updated>2018-12-17T10:30:34Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-12-17T10:30:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8db5b54463118e5eb60cb3582e3108623f01f5df'/>
<id>urn:sha1:8db5b54463118e5eb60cb3582e3108623f01f5df</id>
<content type='text'>
TextTestRunner of unittest.runner now uses time.perf_counter() rather
than time.time() to measure the execution time of a test: time.time()
can go backwards, whereas time.perf_counter() is monotonic.

Similar change made in libregrtest, pprint and random.</content>
</entry>
<entry>
<title>Remove unnecessary and over-restrictive type check (GH-10905)</title>
<updated>2018-12-04T22:53:14Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-12-04T22:53:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=09473ac0636c16c0ee96c4caf59f3da8ba8b4a57'/>
<id>urn:sha1:09473ac0636c16c0ee96c4caf59f3da8ba8b4a57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add comments regarding speed/space/entropy trade-offs (GH-10885)</title>
<updated>2018-12-04T08:13:38Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-12-04T08:13:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7fc633f5a56d9e672cd24133e2e1376347abac6c'/>
<id>urn:sha1:7fc633f5a56d9e672cd24133e2e1376347abac6c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hoist the float conversion out of the inner loop. (GH-10430)</title>
<updated>2018-11-09T10:39:50Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-11-09T10:39:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a18e0510a145427d8ff1864a011c81ea02cdcd4'/>
<id>urn:sha1:0a18e0510a145427d8ff1864a011c81ea02cdcd4</id>
<content type='text'>
Currently, the *n* and *total* variables get converted to floats each time they are multiplied by random().  This minor tweak does the conversion just once and gets a small speedup (approx 3%).</content>
</entry>
</feed>
