]> granicus.if.org Git - python/commitdiff
whatsnew: random.getrandbits performance.
authorR David Murray <rdmurray@bitdance.com>
Tue, 31 Dec 2013 20:06:05 +0000 (15:06 -0500)
committerR David Murray <rdmurray@bitdance.com>
Tue, 31 Dec 2013 20:06:05 +0000 (15:06 -0500)
Also fix a NEWS file issue number error, and some spacing fixes in whatsnew.

Doc/whatsnew/3.4.rst
Misc/NEWS

index ccb9e45c1cb4e6ee2e22a10e87a4d31bb32bfec7..5d0db50125b714f5acba402f757d6183030dde78 100644 (file)
@@ -453,6 +453,7 @@ deviation of a data series.
 
 .. _whatsnew-tracemalloc:
 
+
 tracemalloc
 -----------
 
@@ -902,6 +903,7 @@ The ``socket.AF_*`` and ``socket.SOCK_*`` constants are enumeration values,
 using the new :mod:`enum` module. This allows descriptive reporting during
 debugging, instead of seeing integer "magic numbers".
 
+
 ssl
 ---
 
@@ -1198,6 +1200,9 @@ Significant Optimizations
   most cases.  :class:`lzma.LZMAFile` has also been optimized.  (Contributed by
   Serhiy Storchaka and Nadeem Vawda in :issue:`16034`.)
 
+* :func:`random.getrandbits` is 20%-40% faster for small integers (the most
+  common use case).  (Contributed by Serhiy Storchaka in :issue:`16674`).
+
 
 Deprecated
 ==========
index a203bc3d205fa2e5703d85b9f94c36f98ef83c81..5129316d5b2e730ac72470aed9c21efe48522e92 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2518,7 +2518,7 @@ Library
   byte-compiled file is a symlink or non-regular file as a warning that import
   will not keep the file path type if it writes to that path.
 
-- Issue #180022: Have site.addpackage() consider already known paths even when
+- Issue #16972: Have site.addpackage() consider already known paths even when
   none are explicitly passed in. Bug report and fix by Kirill.
 
 - Issue #1602133: on Mac OS X a shared library build (``--enable-shared``)