summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-12-31 20:06:05 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-12-31 20:06:05 (GMT)
commit8b2d68245e5c6721fc7295588570d15830e14a34 (patch)
tree30488b9e237ebcb5085543ab7dda225a5fb0d52e
parentd592bb2dc45a11809a0a05a817e79894b2f6b1d8 (diff)
downloadcpython-8b2d68245e5c6721fc7295588570d15830e14a34.zip
cpython-8b2d68245e5c6721fc7295588570d15830e14a34.tar.gz
cpython-8b2d68245e5c6721fc7295588570d15830e14a34.tar.bz2
whatsnew: random.getrandbits performance.
Also fix a NEWS file issue number error, and some spacing fixes in whatsnew.
-rw-r--r--Doc/whatsnew/3.4.rst5
-rw-r--r--Misc/NEWS2
2 files changed, 6 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index ccb9e45..5d0db50 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -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
==========
diff --git a/Misc/NEWS b/Misc/NEWS
index a203bc3..5129316 100644
--- 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``)