Create bookmark
Programming Python
Notes
Please login to add notes
- Table of Contents
- + Foreword
-
+
Preface
- “And Now for Something Completely Different . . . Again”
- About This Book
- + About This Edition
- This Book’s Motivation
- This Book’s Structure
-
+
This Edition’s Design
- + Using the Book’s Examples
- Conventions Used in This Book
- Safari® Enabled
- Where to Look for Updates
- Contacting O’Reilly
- Using Code Examples
- Acknowledgments
- Part I
-
+
Introducing Python
- + A Sneak Preview
- Part II
- + System Tools
- + File and Directory Tools
- + Parallel System Tools
- + System Examples: Utilities
-
+
System Examples: Directories
- Part III
-
+
Graphical User Interfaces
- + “Here’s Looking at You, Kid”
- Python GUI Development Options
- + Tkinter Overview
- + Climbing the GUI Learning Curve
- + Tkinter Coding Basics
- + Tkinter Coding Alternatives
- + Adding Buttons and Callbacks
-
+
Adding User-Defined Callback Handlers
- + Adding Multiple Widgets
- Customizing Widgets with Classes
- + Reusable GUI Components with Classes
- The End of the Tutorial
- Python/Tkinter for Tcl/Tk Converts
- + A Tkinter Tour, Part 1
- + A Tkinter Tour, Part 2
-
+
GUI Coding Techniques
- “Building a Better Mouse Trap”
- GuiMixin: Common Tool Mixin Classes
- + GuiMaker: Automating Menus and Toolbars
- + ShellGui: GUIs for Command-Line Tools
- + GuiStreams: Redirecting Streams to Widgets
- Reloading Callback Handlers Dynamically
- Wrapping Up Top-Level Window Interfaces
- + GUIs, Threads, and Queues
- + More Ways to Add GUIs to Non-GUI Code
- + Complete GUI Programs
- Part IV
- + Network Scripting
-
+
Client-Side Scripting
- “Socket to Me!”
-
+
FTP: Transferring Files over the Net
- Processing Internet Email
- + POP: Fetching Email
- + SMTP: Sending Email
- + email: Parsing and Composing Mails
- + pymail: A Console-Based Email Client
- + The mailtools Utility Package
- NNTP: Accessing Newsgroups
- HTTP: Accessing Web Sites
- + Module urllib Revisited
- Other Client-Side Scripting Options
-
+
The PyMailGUI Client
- + “Use the Source, Luke”
- + A PyMailGUI Demo
-
+
PyMailGUI Implementation
- Code Reuse
- Code Structure
- PyMailGui2: The Main Module
- SharedNames: Program-Wide Globals
- ListWindows: Message List Windows
- ViewWindows: Message View Windows
- messagecache: Message Cache Manager
- popuputil: General-Purpose GUI Pop Ups
- wraplines: Line Split Tools
- mailconfig: User Configurations
- PyMailGuiHelp: User Help Text
- Ideas for Improvement
-
+
Server-Side Scripting
- “Oh What a Tangled Web We Weave”
- + What’s a Server-Side CGI Script?
- + Running Server-Side Examples
- + Climbing the CGI Learning Curve
-
+
Saving State Information in CGI Scripts
- + The Hello World Selector
- + Refactoring Code for Maintainability
- + More on HTML and URL Escapes
- + Transferring Files to Clients and Servers
-
+
The PyMailCGI Server
-
+
Advanced Internet Topics
- “Surfing on the Shoulders of Giants”
- + Zope: A Web Application Framework
- + HTMLgen: Web Pages from Objects
- + Jython: Python for Java
- + Grail: A Python-Based Web Browser
- + XML Processing Tools
-
+
Windows Web Scripting Extensions
- + Python Server Pages
- + Rolling Your Own Servers in Python
- And Other Cool Stuff
- Part V
-
+
Databases and Persistence
-
+
Data Structures
- “Roses Are Red, Violets Are Blue; Lists Are Mutable, and So Is Set Foo”
- + Implementing Stacks
-
+
Implementing Sets
- Subclassing Built-In Types
- Binary Search Trees
- + Graph Searching
- Reversing Sequences
- Permuting Sequences
- + Sorting Sequences
- Data Structures Versus Python Built-Ins
- + PyTree: A Generic Tree Object Viewer
- + Text and Language
- Part VI
-
+
Extending Python
- “I Am Lost at C”
- + Integration Modes
- C Extensions Overview
- A Simple C Extension Module
-
+
Extension Module Details
- + The SWIG Integration Code Generator
- + Wrapping C Environment Calls
- + A C Extension Module String Stack
- + A C Extension Type String Stack
- + Wrapping C++ Classes with SWIG
- Other Extending Tools
- + Embedding Python
- Part VII
-
+
Conclusion: Python and the Development Cycle
- “That’s the End of the Book, Now Here’s the Meaning of Life”
- “Something’s Wrong with the Way We Program Computers”
- The “Gilligan Factor”
- + Doing the Right Thing
- Enter Python
- + But What About That Bottleneck?
- On Sinking the Titanic
- So What’s “Python: The Sequel”?
- In the Final Analysis . . .
- + Postscript to the Second Edition (2000)
- + Postscript to the Third Edition (2006)
- Index
Already the industry standard for Python users, Programming Python from O'Reilly just got even better. This third edition has been updated to reflect current best practices and the abundance of changes introduced by the latest version of the language, Python 2.5.
Whether you're a novice or an advanced practitioner, you'll find this refreshed book more than lives up to its reputation. Programming Python, 3rd Edition, teaches you the right way to code. It explains Python language syntax and programming techniques in a clear and concise manner, with numerous examples that illustrate both correct usage and common idioms. By reading this comprehensive guide, you'll learn how to apply Python in real-world problem domains such as:
GUI programming
Internet scripting
Parallel processing
Database management
Networked applications
Programming Python, Third Edition covers each of these target domains gradually, beginning with in-depth discussions of core concepts and then progressing toward complete programs. Large examples do appear, but only after you've learned enough to understand their techniques and code.
Along the way, you'll also learn how to use the Python language in realistically scaled programs--concepts such as Object-Oriented Programming (OOP) and code reuse are recurring side themes throughout this text. If you're interested in Python programming, then this O'Reilly classic needs to be within arm's reach. The wealth of practical advice, snippets of code, and patterns of program design can all be put into use on a daily basis--making your life easier and more productive.
Reviews of the second edition:
"...about as comprehensive as any book can be."
--Dr. Dobb's Journal
"If the language had manuals, they would undoubtedly be the texts from O'Reilly...'Learning Python' and 'Programming Python' are definitive treatments."
--SD Times
Book Details
Authors
Categories
Publishers
Publication year : 2006
License: All rights reserved ©
Times read: 3,093

