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: shortcut should be short-circuit
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, peterneillewis
Priority: normal Keywords:

Created on 2002-03-06 08:08 by peterneillewis, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg9527 - (view) Author: Peter N Lewis (peterneillewis) Date: 2002-03-06 08:08
In section 5.5 of the documentation, on page

http://www.python.org/doc/tut/node7.html

it states "The Boolean operators and and or are 
so-called shortcut operators: their arguments are 
evaluated from left to right, and evaluation stops as 
soon as the outcome is determined"

Instead of shortcut, it should state "short-circuit".  A 
shortcut operator is like +=.  A short-circuit operator 
is as described here.
msg9528 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-03-08 02:14
Logged In: YES 
user_id=3066

You're right!  Checked in as Doc/tut/tut.tex revisions
1.133.2.6 (Python 2.1.x), 1.156.4.1.2.2 (Python 2.2.x), and
1.159 (Python 2.3+).
History
Date User Action Args
2022-04-10 16:05:04adminsetgithub: 36207
2002-03-06 08:08:16peterneillewiscreate