Effective Python: 90 Specific Ways to Write Better Python, 2nd Edition

0
(0)

Effective Python: 90 Specific Ways to Write Better Python, 2nd Edition
 

  • Author:Brett Slatkin
  • Length: 480 pages
  • Edition: 2
  • Publisher: Addison-Wesley Professional
  • Publication Date: 2019-12-02
  • ISBN-10: 0134853989
  • ISBN-13: 9780134853987
  • Sales Rank: #66957 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Updated and Expanded for Python 3

    It’s easy to start developing programs with Python, which is why the language is so popular. However, Python’s unique strengths, charms, and expressiveness can be hard to grasp, and there are hidden pitfalls that can easily trip you up.

    This second edition of Effective Python will help you master a truly “Pythonic” approach to programming, harnessing Python’s full power to write exceptionally robust and well-performing code. Using the concise, scenario-driven style pioneered in Scott Meyers’ best-selling Effective C++, Brett Slatkin brings together 90 Python best practices, tips, and shortcuts, and explains them with realistic code examples so that you can embrace Python with confidence.

    Drawing on years of experience building Python infrastructure at Google, Slatkin uncovers little-known quirks and idioms that powerfully impact code behavior and performance. You’ll understand the best way to accomplish key tasks so you can write code that’s easier to understand, maintain, and improve. In addition to even more advice, this new edition substantially revises all items from the first edition to reflect how best practices have evolved.

    Key features include

    • 30 new actionable guidelines for all major areas of Python
    • Detailed explanations and examples of statements, expressions, and built-in types
    • Best practices for writing functions that clarify intention, promote reuse, and avoid bugs
    • Better techniques and idioms for using comprehensions and generator functions
    • Coverage of how to accurately express behaviors with classes and interfaces
    • Guidance on how to avoid pitfalls with metaclasses and dynamic attributes
    • More efficient and clear approaches to concurrency and parallelism
    • Solutions for optimizing and hardening to maximize performance and quality
    • Techniques and built-in modules that aid in debugging and testing
    • Tools and best practices for collaborative development

    Effective Python will prepare growing programmers to make a big impact using Python.

    中文:

    书名:高效的Python:写出更好的Python的90种具体方法,第2版

    针对Python3进行了更新和扩展

    开始使用Python开发程序很容易,这就是该语言如此流行的原因。然而,Python的独特优势、魅力和表现力可能很难掌握,而且有一些隐藏的陷阱很容易让您绊倒。

    这是第二版 高效的巨蟒 将帮助您掌握真正的“Pythonic”编程方法,充分利用Python的全部功能来编写异常健壮和性能良好的代码。使用斯科特·迈耶斯的畅销书中开创的简洁、情景驱动的风格 有效的C++,Brett Slatkin汇集了90个Python最佳实践、技巧和快捷方式,并用实际的代码示例进行了解释,这样您就可以满怀信心地使用Python了。

    根据在Google构建Python基础设施的多年经验,Slatkin揭示了对代码行为和性能有很大影响的鲜为人知的怪癖和习惯用法。您将了解完成关键任务的最佳方式,这样您就可以编写更易于理解、维护和改进的代码。除了更多的建议外,这个新版本对第一版的所有项目进行了大幅修订,以反映最佳做法是如何演变的。

    主要功能包括

    • 针对Python所有主要领域的30个新的可操作指南
    • Detailed explanations and examples of statements, expressions, and built-in types
    • 编写明确意图、促进重用和避免错误的函数的最佳实践
    • 使用理解和生成函数的更好的技术和习惯用法
    • 介绍了如何用类和接口准确地表达行为
    • 关于如何避免元类和动态属性陷阱的指导
    • More efficient and clear approaches to concurrency and parallelism
    • 用于优化和强化以最大限度提高性能和质量的解决方案
    • 帮助调试和测试的技术和内置模块
    • 协作开发的工具和最佳实践

    高效的巨蟒 将使不断增长的程序员做好准备,以便使用Python产生重大影响。

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册