From dd0a07d2fc31b681da13d043247654af6f437082 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 4 Aug 2009 16:29:57 -0700 Subject: [PATCH] missing asterism! OH NOES! --- your-first-python-program.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/your-first-python-program.html b/your-first-python-program.html index c2d1c84..049b66b 100755 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -191,6 +191,8 @@ SyntaxError: non-keyword arg after keyword arg
  • By using sys.path.insert(0, new_path), you inserted a new directory as the first item of the sys.path list, and therefore at the beginning of Python’s search path. This is almost always what you want. In case of naming conflicts (for example, if Python ships with version 2 of a particular library but you want to use version 3), this ensures that your modules will be found and used instead of the modules that came with Python. +

    ⁂ +

    Everything Is An Object

    In case you missed it, I just said that Python functions have attributes, and that those attributes are available at runtime. A function, like everything else in Python, is an object.

    Run the interactive Python shell and follow along: