Part I. The Beginning
- 1. A Sneak Preview
- “Programming Python: The Short Story”
- The Task
- Step 1: Representing Records
- Step 2: Storing Records Persistently
- Step 3: Stepping Up to OOP
- Step 4: Adding Console Interaction
- Step 5: Adding a GUI
- Step 6: Adding a Web Interface
Part II. System Programming
- 2. System Tools
- 3. Script Execution Context
- 4. File and Directory Tools
- 5. Parallel System Tools
- 6. Complete System Programs
Part III. GUI Programming
- 7. Graphical User Interfaces
- 8. A tkinter Tour, Part 1
- 9. A tkinter Tour, Part 2
- 10. GUI Coding Techniques
- 11. Complete GUI Programs
Part IV. Internet Programming
- 12. Network Scripting
- 13. Client-Side Scripting
- 14. The PyMailGUI Client
- 15. Server-Side Scripting
- 16. The PyMailCGI Server
Part V. Tools and Techniques
- 17. Databases and Persistence
- 18. Data Structures
- 19. Text and Language
- 20. Python/C Integration
Part VI. The End
- 21. Conclusion: Python and the Development Cycle
Index
Programming Python 4th Edition is a tutorial introduction to using Python in common application domains and tasks. It teaches how to apply Python for system administration, GUIs, and the Web, and explores its roles in networking, databases, frontend scripting layers, text processing, and more. Although the Python language is used along the way, this book’s focus is on application to real-world tasks instead of language fundamentals.
This Fourth Edition has been updated to present the language, libraries, and practice of Python 3.X. Specifically, its examples use Python 3.1—the most recent version of Python at the time of writing—and its major examples were tested successfully under the third alpha release of Python 3.2 just prior to publication, but they reflect the version of the language common to the entire 3.X line. This edition has also been reorganized in ways that both streamline some of its former material and allow for coverage of newly emerged tools and topics.
New to this edition
- Its existing material was shortened to allow for new topics.
- It covers 3.X (only). This book’s examples and narrative have been updated to reflect and use the 3.X version of Python. Python 2.X is no longer supported here, except where 3.X and 2.X Pythons overlap. For readers who still straddle the 2.X and 3.X worlds, I’ll say more about Python 3.X changes later in this Preface. Probably the most significant 3.X-related change described there is the new Internationalization support in PyEdit and PyMailGUI; though 2.X had Unicode too, its new prominence in 3.X almost forces such systems to rethink their former ASCII-only ways.
- Inclusion of newly emerged libraries and tools. This includes new standard library tools such as subprocess (in Chapters 2 and 3) and multiprocessing (in Chapter 5), as well as new third-party web frameworks and ORM database toolkits.
- This Preface was tightened up.
- The initial Python overview chapter is gone.
- The conclusion’s postscripts are gone.
- The forewords are gone.
- The C integration part has been reduced to just one chapter.
- The systems programming part was condensed and reworked.
- Some larger examples were removed (but are available in the examples distribution).
- The advanced Internet topics chapter was replaced by brief summaries.
- Use of tools available for 3.X today.
- The combined effect of all the changes just outlined is that this edition more concisely and sharply reflects its core focus—that of a tutorial introduction to ways to apply Python in common programming domains. Nevertheless, as you can tell from this book’s page count, it is still a substantial and in-depth book, designed to be a first step on your path to mastering realistic applications of Python.
About the Author
- Mark Lutz is the world leader in Python training, the author of Python's earliest and best-selling texts, and a pioneering figure in the Python community since 1992. He has been a software developer for 25 years, and is the author of O'Reilly's Programming Python, 3rd Edition and Python Pocket Reference, 3rd Edition.
Product Details
- Paperback: 1632 pages
- Publisher: O'Reilly Media; Fourth edition (January 7, 2011)
- Language: English
- ISBN-10: 0596158106
- ISBN-13: 978-0596158101
- Product Dimensions: 9.1 x 7.2 x 2.4 inches
List Price: $64.99