Python Cookbook

Alex Martelli, David Ascher

  • 出版商: O'Reilly
  • 出版日期: 2002-07-15
  • 售價: $1,520
  • 貴賓價: 9.5$1,444
  • 語言: 英文
  • 頁數: 606
  • 裝訂: Paperback
  • ISBN: 0596001673
  • ISBN-13: 9780596001674
  • 相關分類: Python程式語言
  • 已絕版

買這商品的人也買了...

商品描述

The Python Cookbook is a collection of problems, solutions, and practical examples for Python programmers, written by Python programmers. Over the past year, members of the Python community have contributed material to an online repository of Python recipes hosted by ActiveState. This book contains the best of those recipes, accompanied by overviews and background material by key Python figures.

The recipes in the Python Cookbook range from simple tasks, such as working with dictionaries and list comprehensions, to entire modules that demonstrate templating systems and network monitoring. This book contains over 200 recipes on the following topics:


  • Searching and sorting
  • Manipulating text
  • Working with files and the filesystem
  • Object-oriented programming
  • Dealing with threads and processes
  • System administration
  • Interacting with databases
  • Creating user interfaces
  • Network and web programming
  • Processing XML
  • Distributed programming
  • Debugging and testing
  • Extending Python


This book is a treasure trove of useful code for all Python programmers, from novices to advanced practitioners, with contributions from such Python luminaries as Guido Van Rossum, David Ascher, Tim Peters, Paul Prescod, Mark Hammond, and Alex Martelli, as well as over 100 other Python programmers. The recipes highlight Python best practices and can be used directly in day-to-day programming tasks, as a source of ideas, or as a way to learn more about Python.

The recipes in the Python Cookbook were edited by David Ascher, who is on the board of the Python Software Foundation and is the co-author of Learning Python, and Alex Martelli, who is known for his numerous and exhaustive postings on the Python mailing list. The book contains a foreword by Guido van Rossum, the creator of Python.

Table of Contents

Foreword

Preface

1. Python Shortcuts

2. Searching and Sorting

3. Text

4. Files

5. Object-Oriented Programming

6. Threads, Processes, and Synchronization

7. System Administration

8. Databases and Persistence

9. User Interfaces

10. Network Programming

11. Web Programming

12. Processing XML

13. Distributed Programming

14. Debugging and Testing

15. Programs About Programs

16. Extending and Embedding

17. Algorithms

List of Contributors

Index