From baf1ad36662e82fc5c54129851adee75ba3fc93a Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Wed, 5 Aug 2009 17:08:46 -0700 Subject: [PATCH] typo --- native-datatypes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native-datatypes.html b/native-datatypes.html index 44b1be7..00afa04 100755 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -38,7 +38,7 @@ body{counter-reset:h1 2}

Booleans

-

Booleans are either true or false. Python has two constants, cleverly True and False, which can be used to assign boolean values directly. Expressions can also evaluate to a boolean value. In certain places (like if statements), Python expects an expression to evaluate to a boolean value. These places are called boolean contexts. You can use virtually any expression in a boolean context, and Python will try to determine its truth value. Different datatypes have different rules about which values are true or false in a boolean context. (This will make more sense once you see some concrete examples later in this chapter.) +

Booleans are either true or false. Python has two constants, cleverly named True and False, which can be used to assign boolean values directly. Expressions can also evaluate to a boolean value. In certain places (like if statements), Python expects an expression to evaluate to a boolean value. These places are called boolean contexts. You can use virtually any expression in a boolean context, and Python will try to determine its truth value. Different datatypes have different rules about which values are true or false in a boolean context. (This will make more sense once you see some concrete examples later in this chapter.)

For example, take this snippet from humansize.py:

if size < 0:
     raise ValueError('number must be non-negative')