12.07.2015 Views

Is Python a

Is Python a

Is Python a

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Part I, Getting StartedWe begin with a general overview of <strong>Python</strong> that answers commonly asked initialquestions—why people use the language, what it’s useful for, and so on. Thefirst chapter introduces the major ideas underlying the technology to give yousome background context. Then the technical material of the book begins, as weexplore the ways that both we and <strong>Python</strong> run programs. The goal of this part ofthe book is to give you just enough information to be able to follow along withlater examples and exercises.Part II, Types and OperationsNext, we begin our tour of the <strong>Python</strong> language, studying <strong>Python</strong>’s major builtinobject types in depth: numbers, lists, dictionaries, and so on. You can get a lotdone in <strong>Python</strong> with these tools alone. This is the most substantial part of thebook because we lay groundwork here for later chapters. We’ll also look atdynamic typing and its references—keys to using <strong>Python</strong> well—in this part.Part III, Statements and SyntaxThe next part moves on to introduce <strong>Python</strong>’s statements—the code you type tocreate and process objects in <strong>Python</strong>. It also presents <strong>Python</strong>’s general syntaxmodel. Although this part focuses on syntax, it also introduces some relatedtools, such as the PyDoc system, and explores coding alternatives.Part IV, FunctionsThis part begins our look at <strong>Python</strong>’s higher-level program structure tools. Functionsturn out to be a simple way to package code for reuse and avoid coderedundancy. In this part, we will explore <strong>Python</strong>’s scoping rules, argumentpassingtechniques, and more.Part V, Modules<strong>Python</strong> modules let you organize statements and functions into larger components,and this part illustrates how to create, use, and reload modules. We’ll alsolook at some more advanced topics here, such as module packages, modulereloading, and the _ _name_ _ variable.Part VI, Classes and OOPHere, we explore <strong>Python</strong>’s object-oriented programming (OOP) tool, the class—an optional but powerful way to structure code for customization and reuse. Asyou’ll see, classes mostly reuse ideas we will have covered by this point in thebook, and OOP in <strong>Python</strong> is mostly about looking up names in linked objects.As you’ll also see, OOP is optional in <strong>Python</strong>, but can shave development timesubstantially, especially for long-term strategic project development.Part VII, Exceptions and ToolsWe wrap up the text with a look at <strong>Python</strong>’s exception handling model andstatements, plus a brief overview of development tools that will become moreuseful when you start writing larger programs (debugging and testing tools, forinstance). This part comes last, exceptions should now all be classes.Preface | xxxv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!