summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-12-27 21:17:04 (GMT)
committerBrett Cannon <brett@python.org>2015-12-27 21:17:04 (GMT)
commit1e3c3e906c9f1fcc463cfb3641d078eec773666f (patch)
tree72e1e89b587158cd61dcd55d62a8a24dbf838011 /Doc/whatsnew
parent4a4ca7c13f65d54087bf6add854bbbc23db1541f (diff)
downloadcpython-1e3c3e906c9f1fcc463cfb3641d078eec773666f.zip
cpython-1e3c3e906c9f1fcc463cfb3641d078eec773666f.tar.gz
cpython-1e3c3e906c9f1fcc463cfb3641d078eec773666f.tar.bz2
Issue #25768: Make compileall functions return booleans and document
the return values as well as test them. Thanks to Nicholas Chammas for the bug report and initial patch.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.6.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index f97c70f..c660933 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -230,6 +230,11 @@ that may require changes to your code.
Changes in the Python API
-------------------------
+* The functions in the :mod:`compileall` module now return booleans instead
+ of ``1`` or ``0`` to represent success or failure, respectively. Thanks to
+ booleans being a subclass of integers, this should only be an issue if you
+ were doing identity checks for ``1`` or ``0``. See :issue:`25768`.
+
* Reading the :attr:`~urllib.parse.SplitResult.port` attribute of
:func:`urllib.parse.urlsplit` and :func:`~urllib.parse.urlparse` results
now raises :exc:`ValueError` for out-of-range values, rather than