<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/random.py, branch v3.8.5</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)</title>
<updated>2019-06-01T08:00:15+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-06-01T08:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2085bd0877e17ad4d98a4586d5eabb6faecbb190'/>
<id>2085bd0877e17ad4d98a4586d5eabb6faecbb190</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36559: random module: optimize sha512 import (GH-12742)</title>
<updated>2019-04-10T20:18:02+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2019-04-10T20:18:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d914596a671c4b0f13641359cf43aa0d6fc05070'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;</pre>
</div>
</content>
</entry>
<entry>
<title>Convert range to repeat for choices() (#11889)</title>
<updated>2019-02-16T21:30:51+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2019-02-16T21:30:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5382203ae1bf637f9554277d5597d04805934420'/>
<id>5382203ae1bf637f9554277d5597d04805934420</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Be consistent about the use of from-imports in random module (GH-11837)</title>
<updated>2019-02-13T10:04:17+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2019-02-13T10:04:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=cfd31f0af20f76849bbec6185efea01c72349f2a'/>
<id>cfd31f0af20f76849bbec6185efea01c72349f2a</id>
<content type='text'>
Minor code clean-up.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Minor code clean-up.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35782: Fix error message in randrange (GH-11620)</title>
<updated>2019-01-21T19:19:59+00:00</updated>
<author>
<name>Kumar Akshay</name>
<email>k.akshay9721@gmail.com</email>
</author>
<published>2019-01-21T19:19:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2433a2ab705e93f9a44f01c260d351b205a73e9d'/>
<id>2433a2ab705e93f9a44f01c260d351b205a73e9d</id>
<content type='text'>
https://bugs.python.org/issue35782</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugs.python.org/issue35782</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)</title>
<updated>2018-12-24T06:54:25+00:00</updated>
<author>
<name>leodema</name>
<email>leodema@users.noreply.github.com</email>
</author>
<published>2018-12-24T06:54:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=63d152232e1742660f481c04a811f824b91f6790'/>
<id>63d152232e1742660f481c04a811f824b91f6790</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)</title>
<updated>2018-12-17T10:30:34+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-12-17T10:30:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8db5b54463118e5eb60cb3582e3108623f01f5df'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary and over-restrictive type check (GH-10905)</title>
<updated>2018-12-04T22:53:14+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-12-04T22:53:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=09473ac0636c16c0ee96c4caf59f3da8ba8b4a57'/>
<id>09473ac0636c16c0ee96c4caf59f3da8ba8b4a57</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add comments regarding speed/space/entropy trade-offs (GH-10885)</title>
<updated>2018-12-04T08:13:38+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-12-04T08:13:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7fc633f5a56d9e672cd24133e2e1376347abac6c'/>
<id>7fc633f5a56d9e672cd24133e2e1376347abac6c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Hoist the float conversion out of the inner loop. (GH-10430)</title>
<updated>2018-11-09T10:39:50+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2018-11-09T10:39:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0a18e0510a145427d8ff1864a011c81ea02cdcd4'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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%).</pre>
</div>
</content>
</entry>
</feed>
