Create bookmark
Learning Python
Notes
Please login to add notes
- Table of Contents
- + Preface
- Part I
- + A Python Q&A Session
-
+
How Python Runs Programs
- + How You Run Programs
- Part II
-
+
Introducing Python Object Types
-
+
Numbers
-
+
The Dynamic Typing Interlude
-
+
Strings
-
+
Lists and Dictionaries
- + Tuples, Files, and Everything Else
- Part III
-
+
Introducing Python Statements
-
+
Assignment, Expressions, and print
-
+
if Tests
-
+
while and for Loops
- + The Documentation Interlude
- Part IV
-
+
Function Basics
- + Scopes and Arguments
-
+
Advanced Function Topics
- + Anonymous Functions: lambda
- + Applying Functions to Arguments
- Mapping Functions over Sequences: map
- Functional Programming Tools: filter and reduce
- + List Comprehensions Revisited: Mappings
- + Iterators Revisited: Generators
- Timing Iteration Alternatives
- + Function Design Concepts
- + Function Gotchas
- + Chapter Summary
- Part V
-
+
Modules: The Big Picture
- + Module Coding Basics
-
+
Module Packages
-
+
Advanced Module Topics
- Part VI
- + OOP: The Big Picture
-
+
Class Coding Basics
-
+
Class Coding Details
- + The class Statement
- + Methods
- + Inheritance
-
+
Operator Overloading
- Common Operator Overloading Methods
- __getitem__ Intercepts Index References
- __getitem__ and __iter__ Implement Iteration
- + User-Defined Iterators
- __getattr__ and __setattr__ Catch Attribute References
- Emulating Privacy for Instance Attributes
- __repr__ and __str__ Return String Representations
- __radd__ Handles Right-Side Addition
- __call__ Intercepts Calls
- Function Interfaces and Callback-Based Code
- __del__ Is a Destructor
- + Namespaces: The Whole Story
- A More Realistic Example
- + Chapter Summary
-
+
Designing with Classes
- + Python and OOP
- Classes As Records
- OOP and Inheritance: “Is-a” Relationships
- + OOP and Composition: “Has-a” Relationships
- OOP and Delegation
- Multiple Inheritance
- + Classes Are Objects: Generic Object Factories
- Methods Are Objects: Bound or Unbound
- Documentation Strings Revisited
- Classes Versus Modules
- + Chapter Summary
-
+
Advanced Class Topics
- Part VII
- + Exception Basics
-
+
Exception Objects
-
+
Designing with Exceptions
- Part VIII
-
+
Installation and Configuration
- + Solutions to End-of-Part Exercises
- Index
Portable, powerful, and a breeze to use, Python is ideal for both standalone programs and scripting applications. With this hands-on book, you can master the fundamentals of the core Python language quickly and efficiently, whether you're new to programming or just new to Python. Once you finish, you will know enough about the language to use it in any application domain you choose.Learning Python is based on material from author Mark Lutz's popular training courses, which he's taught over the past decade. Each chapter is a self-contained lesson that helps you thoroughly understand a key component of Python before you continue. Along with plenty of annotated examples, illustrations, and chapter summaries, every chapter also contains Brain Builder, a unique section with practical exercises and review quizzes that let you practice new skills and test your understanding as you go. This book covers: Types and Operations -- Python's major built-in object types in depth: numbers, lists, dictionaries, and moreStatements and Syntax -- the code you type to create and process objects in Python, along with Python's general syntax modelFunctions -- Python's basic procedural tool for structuring and reusing codeModules -- packages of statements, functions, and other tools organized into larger componentsClasses and OOP -- Python's optional object- oriented programming tool for structuring code for customization and reuseExceptions and Tools -- exception handling model and statements, plus a look at development tools for writing larger programs Learning Python gives you a deep and complete understanding of the language that will help you comprehend any application-level examples of Python that you later encounter. If you're ready to discover what Google and YouTube see in Python, this book is the best way to get started.
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Programming Languages > General
Publishers
Publication year : 2007
License: All rights reserved ©
Times read: 917

