Inhaltsverzeichnis

Learning Python

From the contents:
Preface
Part I. Getting Started
1. A Python Q&A Session
Why Do People Use Python?
Software Quality
Developer Productivity
Is Python a "Scripting Language"?
OK, but What's the Downside?
Who Uses Python Today?
What Can I Do with Python?
Systems Programming
GUIs
Internet Scripting
Component Integration
Database Programming
Rapid Prototyping
Numeric and Scientific Programming
Gaming, Images, AI, XML, Robots, and More
What Are Python's Technical Strengths?
It's Object Oriented
It's Free
It's Portable
It's Powerful
It's Mixable
It's Easy to Use
It's Easy to Learn
It's Named After Monty Python
How Does Python Stack Up to Language X?
Chapter Summary
Brain Builder 20
Chapter Quiz 20
Quiz Answers
2. How Python Runs Programs
Introducing the Python Interpreter
Program Execution
The Programmer's View
Python's View
Byte code compilation
The Python Virtual Machine (PVM)
Performance implications
Development implications
Execution Model Variations
Python Implementation Alternatives
CPython
Jython
IronPython
Execution Optimization Tools
The Psyco just-in-time compiler
The Shedskin Csharp translator
Frozen Binaries
Future Possibilities?
Chapter Summary
Brain Builder 33
Chapter Quiz 33
Quiz Answers
3. How You Run Programs
Interactive Coding
Using the Interactive Prompt
System Command Lines and Files
Using Command Lines and Files
Unix Executable Scripts
Clicking File Icons
Clicking Icons on Windows
The raw_input Trick
Other Icon-Click Limitations
Module Imports and Reloads
The Grander Module Story: Attributes
Modules and namespaces
import and reload Usage Notes
The IDLE User Interface
IDLE Basics
Using IDLE
Advanced IDLE Tools
Other IDEs
Embedding Calls
Frozen Binary Executables
Text Editor Launch Options
Other Launch Options
Future Possibilities?
Which Option Should I Use?
Chapter Summary
Brain Builder 59
Chapter Quiz 59
Quiz Answers
Brain Builder: Part I Exercises 61
Part II. Typesand Operations
4. Introducing Python Object Types
Why Use Built-in Types?
Python's Core Data Types
Numbers
Strings
Sequence Operations
Immutability
Type-Specific Methods
Getting Help
Other Ways to Code Strings
Pattern Matching
Lists
Sequence Operations
Type-Specific Operations
Bounds Checking
Nesting
List Comprehensions
Dictionaries
Mapping Operations
Nesting Revisited
Sorting Keys: for Loops
Iteration and Optimization
Missing Keys: if Tests
Tuples
Why Tuples?
Files
Other File-Like Tools
Other Core Types
How to Break Your Code's Flexibility
User-Defined Classes
And Everything Else
Chapter Summary