Create bookmark
Learning Python
Powerful Object-Oriented Programming
Notes
Please login to add notes
- Table of Contents
-
+
Preface
-
+
Part I. Getting Started
-
+
Chapter 1. A Python Q&A Session
- + Why Do People Use Python?
- Is Python a “Scripting Language”?
- OK, but What’s the Downside?
- Who Uses Python Today?
- + What Can I Do with Python?
- How Is Python Supported?
- + What Are Python’s Technical Strengths?
- How Does Python Stack Up to Language X?
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
-
+
Chapter 2. How Python Runs Programs
-
+
Chapter 3. How You Run Programs
- + The Interactive Prompt
- + System Command Lines and Files
- + Clicking File Icons
- + Module Imports and Reloads
- Using exec to Run Module Files
- + The IDLE User Interface
- Other IDEs
- + Other Launch Options
- Which Option Should I Use?
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Test Your Knowledge: Part I Exercises
-
+
Chapter 1. A Python Q&A Session
-
+
Part II. Types and Operations
-
+
Chapter 4. Introducing Python Object Types
-
+
Chapter 5. Numeric Types
-
+
Chapter 6. The Dynamic Typing Interlude
- + Chapter 7. Strings
- + Chapter 8. Lists and Dictionaries
-
+
Chapter 9. Tuples, Files, and Everything Else
- + Tuples
-
+
Files
- Type Categories Revisited
- Object Flexibility
- References Versus Copies
- + Comparisons, Equality, and Truth
- + Python’s Type Hierarchies
- Other Types in Python
- + Built-in Type Gotchas
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Test Your Knowledge: Part II Exercises
-
+
Chapter 4. Introducing Python Object Types
-
+
Part III. Statements and Syntax
-
+
Part IV. Functions
-
+
Chapter 16. Function Basics
-
+
Chapter 17. Scopes
- + Chapter 18. Arguments
- + Chapter 19. Advanced Function Topics
-
+
Chapter 20. Iterations and Comprehensions, Part 2
-
+
Chapter 16. Function Basics
-
+
Part V. Modules
-
+
Chapter 21. Modules: The Big Picture
- + Chapter 22. Module Coding Basics
- + Chapter 23. Module Packages
-
+
Chapter 24. Advanced Module Topics
- + Data Hiding in Modules
- Enabling Future Language Features
- + Mixed Usage Modes: __name__ and __main__
- Changing the Module Search Path
- The as Extension for import and from
- Modules Are Objects: Metaprograms
- Importing Modules by Name String
- Transitive Module Reloads
- Module Design Concepts
- + Module Gotchas
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Test Your Knowledge: Part V Exercises
-
+
Chapter 21. Modules: The Big Picture
-
+
Part VI. Classes and OOP
-
+
Chapter 25. OOP: The Big Picture
-
+
Chapter 26. Class Coding Basics
-
+
Chapter 27. A More Realistic Example
- + Step 1: Making Instances
- + Step 2: Adding Behavior Methods
- + Step 3: Operator Overloading
- + Step 4: Customizing Behavior by Subclassing
- + Step 5: Customizing Constructors, Too
- + Step 6: Using Introspection Tools
- + Step 7 (Final): Storing Objects in a Database
- Future Directions
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
-
+
Chapter 28. Class Coding Details
-
+
Chapter 29. Operator Overloading
- + The Basics
- + Indexing and Slicing: __getitem__ and __setitem__
- Index Iteration: __getitem__
- + Iterator Objects: __iter__ and __next__
- Membership: __contains__, __iter__, and __getitem__
- + Attribute Reference: __getattr__ and __setattr__
- String Representation: __repr__ and __str__
- + Right-Side and In-Place Addition: __radd__ and __iadd__
- + Call Expressions: __call__
- + Comparisons: __lt__, __gt__, and Others
- Boolean Tests: __bool__ and __len__
- Object Destruction: __del__
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
-
+
Chapter 30. Designing with Classes
- + Python and OOP
- OOP and Inheritance: “Is-a” Relationships
- + OOP and Composition: “Has-a” Relationships
- OOP and Delegation: “Wrapper” Objects
- + Pseudoprivate Class Attributes
- + Methods Are Objects: Bound or Unbound
- + Multiple Inheritance: “Mix-in” Classes
- + Classes Are Objects: Generic Object Factories
- Other Design-Related Topics
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
-
+
Chapter 31. Advanced Class Topics
-
+
Chapter 25. OOP: The Big Picture
-
+
Part VII. Exceptions and Tools
-
+
Part VIII. Advanced Topics
-
+
Chapter 36. Unicode and Byte Strings
- String Changes in 3.0
- + String Basics
- + Python 3.0 Strings in Action
- + Coding Unicode Strings
- + Using 3.0 Bytes Objects
- Using 3.0 (and 2.6) bytearray Objects
- + Using Text and Binary Files
- + Using Unicode Files
- + Other String Tool Changes in 3.0
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- + Chapter 37. Managed Attributes
-
+
Chapter 38. Decorators
- + Chapter 39. Metaclasses
-
+
Chapter 36. Unicode and Byte Strings
-
+
Part IX. Appendixes
- Index
Google and YouTube use Python because it's highly adaptable, easy to maintain, and allows for rapid development. If you want to write high-quality, efficient code that's easily integrated with other languages and tools, this hands-on book will help you be productive with Python quickly -- whether you're new to programming or just new to Python. It's an easy-to-follow self-paced tutorial, based on author and Python expert Mark Lutz's popular training course.
Each chapter contains a stand-alone lesson on a key component of the language, and includes a unique Test Your Knowledge section with practical exercises and quizzes, so you can practice new skills and test your understanding as you go. You'll find lots of annotated examples and illustrations to help you get started with Python 3.0.
Learn about Python's major built-in object types, such as numbers, lists, and dictionaries
Create and process objects using Python statements, and learn Python's general syntax model
Structure and reuse code using functions, Python's basic procedural tool
Learn about Python modules: packages of statements, functions, and other tools, organized into larger components
Discover Python's object-oriented programming tool for structuring code
Learn about the exception-handling model, and development tools for writing larger programs
Explore advanced Python tools including decorators, descriptors, metaclasses, and Unicode processing
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Programming Languages > Python
Publishers
Publication year : 2009
License: All rights reserved ©
Times read: 1,280

