From 7a59e9d8951798eb3df0491eaeb759b28b07be0e Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 4 Aug 2009 20:09:27 -0700 Subject: [PATCH] header fiddling --- your-first-python-program.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/your-first-python-program.html b/your-first-python-program.html index 26f49d0..e929da7 100755 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -306,7 +306,7 @@ except ImportError:

By the end of this try..except block, you have imported some module and named it etree. Since both modules implement a common API, the rest of your code doesn’t need to keep checking which module got imported. And since the module that did get imported is always called etree, the rest of your code doesn’t need to be littered with if statements to call differently-named modules. -

Unbound Variables

+

Unbound Variables

Take another look at this line of code from the approximate_size() function: @@ -324,7 +324,7 @@ NameError: name 'x' is not defined

You will thank Python for this one day. -

Everything is Case-Sensitive

+

Everything is Case-Sensitive

All names in Python are case-sensitive: variable names, function names, class names, module names, exception names. If you can get it, set it, call it, construct it, import it, or raise it, it’s case-sensitive.