Python in Practice: Create Better Programs Using Concurrency, Libraries, and Patterns (Paperback)

Mark Summerfield

  • 出版商: Addison Wesley
  • 出版日期: 2013-08-29
  • 售價: $1,485
  • 貴賓價: 9.5$1,411
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 0321905636
  • ISBN-13: 9780321905635
  • 相關分類: Python程式語言
  • 立即出貨 (庫存 < 4)

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

相關主題

商品描述

“Whether you are an experienced programmer or are starting your career, Python in Practice is full of valuable advice and example to help you improve your craft by thinking about problems from different perspectives, introducing tools, and detailing techniques to create more effective solutions.”

Doug Hellmann, Senior Developer, DreamHost

 

If you’re an experienced Python programmer, Python in Practice will help you improve the quality, reliability, speed, maintainability, and usability of all your Python programs.

 

Mark Summerfield focuses on four key themes: design patterns for coding elegance, faster processing through concurrency and compiled Python (Cython), high-level networking, and graphics. He identifies well-proven design patterns that are useful in Python, illuminates them with expert-quality code, and explains why some object-oriented design patterns are irrelevant to Python. He also explodes several counterproductive myths about Python programming–showing, for example, how Python can take full advantage of multicore hardware.

 

All examples, including three complete case studies, have been tested with Python 3.3 (and, where possible, Python 3.2 and 3.1) and crafted to maintain compatibility with future Python 3.x versions. All code has been tested on Linux, and most code has also been tested on OS X and Windows. All code may be downloaded at www.qtrac.eu/pipbook.html.

 

Coverage includes

  • Leveraging Python’s most effective creational, structural, and behavioral design patterns
  • Supporting concurrency with Python’s multiprocessing, threading, and concurrent.futures modules
  • Avoiding concurrency problems using thread-safe queues and futures rather than fragile locks
  • Simplifying networking with high-level modules, including xmlrpclib and RPyC
  • Accelerating Python code with Cython, C-based Python modules, profiling, and other techniques
  • Creating modern-looking GUI applications with Tkinter
  • Leveraging today’s powerful graphics hardware via the OpenGL API using pyglet and PyOpenGL

商品描述(中文翻譯)

「無論您是一位有經驗的程式設計師還是剛開始職業生涯的人,『Python in Practice』都充滿了有價值的建議和示例,幫助您從不同的角度思考問題,介紹工具,並詳細介紹創建更有效解決方案的技巧。」- Doug Hellmann,DreamHost高級開發人員

如果您是一位有經驗的Python程式設計師,《Python in Practice》將幫助您提高所有Python程式的品質、可靠性、速度、可維護性和可用性。

Mark Summerfield專注於四個關鍵主題:編碼優雅的設計模式、通過並發和編譯Python(Cython)實現更快處理、高級網絡和圖形。他確定了在Python中有用的經過驗證的設計模式,用專家級代碼闡明了這些模式,並解釋了為什麼一些面向對象的設計模式對Python來說是無關緊要的。他還揭示了關於Python編程的一些具有反生產力的迷思,例如展示了Python如何充分利用多核硬件的能力。

所有示例,包括三個完整的案例研究,都已在Python 3.3(在可能的情況下,也在Python 3.2和3.1)上進行了測試,並且經過調整以保持與未來的Python 3.x版本的兼容性。所有代碼都在Linux上進行了測試,大部分代碼也在OS X和Windows上進行了測試。所有代碼可在www.qtrac.eu/pipbook.html上下載。

內容包括:
- 利用Python最有效的創建、結構和行為設計模式
- 使用Python的multiprocessing、threading和concurrent.futures模塊支持並發
- 使用線程安全的隊列和futures而不是脆弱的鎖來避免並發問題
- 使用高級模塊(包括xmlrpclib和RPyC)簡化網絡操作
- 通過Cython、基於C的Python模塊、性能分析和其他技術加速Python代碼
- 使用Tkinter創建現代化的GUI應用程序
- 使用pyglet和PyOpenGL通過OpenGL API利用現代強大的圖形硬件