This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Short-circuiting not only on False and True
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.7, Python 3.6, Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Mariatta Nosy List: Mariatta, Stefan Pochmann, docs@python, rhettinger
Priority: normal Keywords: easy

Created on 2017-03-03 12:11 by Stefan Pochmann, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 433 merged Mariatta, 2017-03-03 18:09
PR 436 merged Mariatta, 2017-03-03 21:22
PR 437 merged Mariatta, 2017-03-03 21:22
PR 438 merged Mariatta, 2017-03-03 21:23
Messages (8)
msg288881 - (view) Author: Stefan Pochmann (Stefan Pochmann) * Date: 2017-03-03 12:11
The notes at https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not say that `or` "only evaluates the second argument if the first one is False" and that `and` "only evaluates the second argument if the first one is True". Should say "false" and "true" instead of "False" and "True".
msg288908 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2017-03-03 18:00
Mariatta, would you like to fix this one (False -> false and True -> true).
msg288909 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-03-03 18:14
Thanks, Raymond. I made the PR :)
I can backport to 2.7, 3.5, and 3.6 once it's accepted.
msg288934 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-03-03 21:36
Committed and backported to 2.7, 3.5, and 3.6.
Thanks all :)
msg290320 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-03-24 23:01
New changeset fc59e5c7073af4d9255644a83933dd5b14c7f722 by Mariatta in branch '2.7':
bpo-29709: Improve Boolean Operations documentation (#433) (#438)
https://github.com/python/cpython/commit/fc59e5c7073af4d9255644a83933dd5b14c7f722
msg290321 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-03-24 23:02
New changeset 6e965d9e78b278f2f720a932e7b149cb7d88bd72 by Mariatta in branch '3.5':
bpo-29709: Improve Boolean Operations documentation (#433) (#436)
https://github.com/python/cpython/commit/6e965d9e78b278f2f720a932e7b149cb7d88bd72
msg290322 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-03-24 23:02
New changeset 1936ba93c900d47d0c8c915184ac2fa7773c952e by Mariatta in branch '3.6':
bpo-29709: Improve Boolean Operations documentation (#433) (#437)
https://github.com/python/cpython/commit/1936ba93c900d47d0c8c915184ac2fa7773c952e
msg290324 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-03-24 23:02
New changeset 8eb531d9db0861e14222445fcaebe1a373bba170 by Mariatta in branch 'master':
bpo-29709: Improve Boolean Operations documentation (#433)
https://github.com/python/cpython/commit/8eb531d9db0861e14222445fcaebe1a373bba170
History
Date User Action Args
2022-04-11 14:58:43adminsetgithub: 73895
2017-03-24 23:02:34Mariattasetmessages: + msg290324
2017-03-24 23:02:16Mariattasetmessages: + msg290322
2017-03-24 23:02:08Mariattasetmessages: + msg290321
2017-03-24 23:01:54Mariattasetmessages: + msg290320
2017-03-03 21:36:46Mariattasetstatus: open -> closed
resolution: fixed
messages: + msg288934

stage: needs patch -> resolved
2017-03-03 21:23:34Mariattasetpull_requests: + pull_request364
2017-03-03 21:22:53Mariattasetpull_requests: + pull_request363
2017-03-03 21:22:17Mariattasetpull_requests: + pull_request362
2017-03-03 18:14:56Mariattasetmessages: + msg288909
2017-03-03 18:09:30Mariattasetpull_requests: + pull_request359
2017-03-03 18:00:40rhettingersetassignee: docs@python -> Mariatta

messages: + msg288908
nosy: + rhettinger, Mariatta
2017-03-03 12:33:38serhiy.storchakasetkeywords: + easy
stage: needs patch
versions: - Python 3.3, Python 3.4
2017-03-03 12:11:40Stefan Pochmanncreate