diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2016-08-22 11:24:46 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2016-08-22 11:24:46 (GMT) |
commit | b820d7f63132c1c6c1f301ee40be2b2729a61356 (patch) | |
tree | 0f99eb6240542ff49ddb0202dcd45a756fe2334f /Misc/NEWS | |
parent | 2eedc119c211a793d0c9a0beb1abd4bb12e0802e (diff) | |
download | cpython-b820d7f63132c1c6c1f301ee40be2b2729a61356.zip cpython-b820d7f63132c1c6c1f301ee40be2b2729a61356.tar.gz cpython-b820d7f63132c1c6c1f301ee40be2b2729a61356.tar.bz2 |
Issue #27792: force int return type for modulo operations involving bools.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ What's New in Python 3.6.0 beta 1 Core and Builtins ----------------- +- Issue #27792: The modulo operation applied to ``bool`` and other + ``int`` subclasses now always returns an ``int``. Previously + the return type depended on the input values. Patch by Xiang Zhang. + - Issue #26984: int() now always returns an instance of exact int. - Issue #25604: Fix a minor bug in integer true division; this bug could |