diff --git a/your-first-python-program.html b/your-first-python-program.html index 692e18f..6418059 100755 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -178,7 +178,7 @@ SyntaxError: non-keyword arg after keyword arg
    -
  1. The first line imports the humansize program as a module — a chunk of code that you can use interactively, or from a larger Python program. (You’ll see examples of multi-module Python programs in [FIXME xref].) Once you import a module, you can reference any of its public functions, classes, or attributes. Modules can do this to access functionality in other modules, and you can do it in the Python interactive shell too. This is an important concept, and you’ll see a lot more of it throughout this book. +
  2. The first line imports the humansize program as a module — a chunk of code that you can use interactively, or from a larger Python program. Once you import a module, you can reference any of its public functions, classes, or attributes. Modules can do this to access functionality in other modules, and you can do it in the Python interactive shell too. This is an important concept, and you’ll see a lot more of it throughout this book.
  3. When you want to use functions defined in imported modules, you need to include the module name. So you can’t just say approximate_size; it must be humansize.approximate_size. If you’ve used classes in Java, this should feel vaguely familiar.
  4. Instead of calling the function as you would expect to, you asked for one of the function’s attributes, __doc__.