Learning Python
Edition: First Indian Reprint
Publisher: Shroff Publishers & Distributors Pvt. Ltd.
Published: Jan 2004
Language: eng
Format: Paperback
Table of contents: label: Part I
title: Getting Started; label: Chapter 1
title: A Python Q&A Session; title: Why Do People Use Python?; title: Is Python a Scripting Language?; title: Okay, But What's the Downside?; title: Who Uses Python Today?; title: What Can I Do with Python?; title: What Are Python's Technical Strengths?; title: How Does Python Stack Up to Language X?; label: Chapter 2
title: How Python Runs Programs; title: Introducing the Python Interpreter; title: Program Execution; title: Execution Model Variations; label: Chapter 3
title: How You Run Programs; title: Interactive Coding; title: System Command Lines and Files; title: Clicking Windows File Icons; title: Module Imports and Reloads; title: The IDLE User Interface; title: Other IDEs; title: Embedding Calls; title: Frozen Binary Executables; title: Text Editor Launch Options; title: Other Launch Options; title: Future Possibilities?; title: Which Option Should I Use?; title: Part I Exercises; label: Part II
title: Types and Operations; label: Chapter 4
title: Numbers; title: Python Program Structure; title: Why Use Built-in Types?; title: Numbers; title: Python Expression Operators; title: Numbers in Action; title: The Dynamic Typing Interlude; label: Chapter 5
title: Strings; title: String Literals; title: Strings in Action; title: String Formatting; title: String Methods; title: General Type Categories; label: Chapter 6
title: Lists and Dictionaries; title: Lists; title: Lists in Action; title: Dictionaries; title: Dictionaries in Action; label: Chapter 7
title: Tuples, Files, and Everything Else; title: Tuples; title: Files; title: Type Categories Revisited; title: Object Generality; title: References Versus Copies; title: Comparisons, Equality, and Truth; title: Python's Type Hierarchies; title: Other Types in Python; title: Built-in Type Gotchas; title: Part II Exercises; label: Part III
title: Statements and Syntax; label: Chapter 8
title: Assignment, Expressions, and Print; title: Assignment Statements; title: Expression Statements; title: Print Statements; label: Chapter 9
title: if Tests; title: if Statements; title: Python Syntax Rules; title: Truth Tests; label: Chapter 10
title: while and for Loops; title: while Loops; title: break, continue, pass, and the Loop else; title: for Loops; title: Loop Variations; label: Chapter 11
title: Documenting Python Code; title: The Python Documentation Interlude; title: Common Coding Gotchas; title: Part III Exercises; label: Part IV
title: Functions; label: Chapter 12
title: Function Basics; title: Why Use Functions?; title: Coding Functions; title: A First Example: Definitions and Calls; title: A Second Example: Intersecting Sequences; label: Chapter 13
title: Scopes and Arguments; title: Scope Rules; title: The global Statement; title: Scopes and Nested Functions; title: Passing Arguments; title: Special Argument Matching Modes; label: Chapter 14
title: Advanced Function Topics; title: Anonymous Functions: lambda; title: Applying Functions to Arguments; title: Mapping Functions Over Sequences; title: Functional Programming Tools; title: List Comprehensions; title: Generators and Iterators; title: Function Design Concepts; title: Function Gotchas; title: Part IV Exercises; label: Part V
title: Modules; label: Chapter 15
title: Modules: The Big Picture; title: Why Use Modules?; title: Python Program Architecture; title: How Imports Work; label: Chapter 16
title: Module Coding Basics; title: Module Creation; title: Module Usage; title: Module Namespaces; title: Reloading Modules; label: Chapter 17
title: Module Packages; title: Package Import Basics; title: Package Import Example; title: Why Use Package Imports?; title: A Tale of Three Systems; label: Chapter 18
title: Advanced Module Topics; title: Data Hiding in Modules; title: Enabling Future Language Features; title: Mixed Usage Modes: __name__ and __main__; title: Changing the Module Search Path; title: The import as Extension; title: Module Design Concepts; title: Module Gotchas; title: Part V Exercises; label: Part VI
title: Classes and OOP; label: Chapter 19
title: OOP: The Big Picture; title: Why Use Classes?; title: OOP from 30,000 Feet; label: Chapter 20
title: Class Coding Basics; title: Classes Generate Multiple Instance Objects; title: Classes Are Customized by Inheritance; title: Classes Can Intercept Python Operators; label: Chapter 21
title: Class Coding Details; title: The Class Statement; title: Methods; title: Inheritance; title: Operator Overloading; title: Namespaces: The Whole Story; label: Chapter 22
title: Designing with Classes; title: Python and OOP; title: Classes as Records; title: OOP and Inheritance: "is-a" Relationships; title: OOP and Composition: "has-a" Relationships; title: OOP and Delegation; title: Multiple Inheritance; title: Classes Are Objects: Generic Object Factories; title: Methods Are Objects: Bound or Unbound; title: Documentation Strings Revisited; title: Classes Versus Modules; label: Chapter 23
title: Advanced Class Topics; title: Extending Built-in Types; title: Pseudo-Private Class Attributes; title: "New Style" Classes in Python 2.2; title: Class Gotchas; title: Part VI Exercises; label: Part VII
title: Exceptions and Tools; label: Chapter 24
title: Exception Basics; title: Why Use Exceptions?; title: Exception Handling: The Short Story; title: The try/except/else Statement; title: The try/finally Statement; title: The raise Statement; title: The assert Statement; label: Chapter 25
title: Exception Objects; title: String-Based Exceptions; title: Class-Based Exceptions; title: General raise Statement Forms; label: Chapter 26
title: Designing with Exceptions; title: Nesting Exception Handlers; title: Exception Idioms; title: Exception Design Tips; title: Exception Gotchas; title: Core Language Summary; title: Part VII Exercises; label: Part VIII
title: The Outer Layers; label: Chapter 27
title: Common Tasks in Python; title: Exploring on Your Own; title: Conversions, Numbers, and Comparisons; title: Manipulating Strings; title: Data Structure Manipulations; title: Manipulating Files and Directories; title: Internet-Related Modules; title: Executing Programs; title: Debugging, Testing, Timing, Profiling; title: Exercises; label: Chapter 28
title: Frameworks; title: An Automated Complaint System; title: Interfacing with COM: Cheap Public Relations; title: A Tkinter-Based GUI Editor for Managing Form Data; title: Jython: The Felicitous Union of Python and Java; title: Exercises; label: Chapter 29
title: Python Resources; title: Layers of Community; title: The Process; title: Services and Products; title: The Legal Framework: The Python Software Foundation; title: Software; title: Popular Third-Party Software; title: Web Application Frameworks; title: Tools for Python Developers; label: Part IX
title: Appendixes; label: A
title: Installation and Configuration; label: B
title: Solutions to Exercises; title: Index