Issue 29709: Short-circuiting not only on False and True (original) (raw)

Issue29709

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:43 admin set github: 73895
2017-03-24 23:02:34 Mariatta set messages: +
2017-03-24 23:02:16 Mariatta set messages: +
2017-03-24 23:02:08 Mariatta set messages: +
2017-03-24 23:01:54 Mariatta set messages: +
2017-03-03 21:36:46 Mariatta set status: open -> closedresolution: fixedmessages: + stage: needs patch -> resolved
2017-03-03 21:23:34 Mariatta set pull_requests: + <pull%5Frequest364>
2017-03-03 21:22:53 Mariatta set pull_requests: + <pull%5Frequest363>
2017-03-03 21:22:17 Mariatta set pull_requests: + <pull%5Frequest362>
2017-03-03 18:14:56 Mariatta set messages: +
2017-03-03 18:09:30 Mariatta set pull_requests: + <pull%5Frequest359>
2017-03-03 18:00:40 rhettinger set assignee: docs@python -> Mariattamessages: + nosy: + rhettinger, Mariatta
2017-03-03 12:33:38 serhiy.storchaka set keywords: + easystage: needs patchversions: - Python 3.3, Python 3.4
2017-03-03 12:11:40 Stefan Pochmann create