Effective Python : 90 Specific Ways to Write Better Python

Effective Python : 90 Specific Ways to Write Better Python


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.

Similar Books

ISBN 10: 1491946008
ISBN 13: 9781491946008

28 Aug 2015
Luciano Ramalho

ISBN 10: 0135957052
ISBN 13: 9780135957059

09 Jan 2020
David Thomas

ISBN 10: 1593279280
ISBN 13: 9781593279288

09 May 2019
Eric Matthes

ISBN 10: 1775093301
ISBN 13: 9781775093305

25 Oct 2017
Dan Bader

ISBN 10: 1492052205
ISBN 13: 9781492052203

30 Apr 2020
Harry J.W. Percival

ISBN 10: 1491957662
ISBN 13: 9781491957660

03 Nov 2017
Wes McKinney

ISBN 10: 1593279922
ISBN 13: 9781593279929

12 Oct 2020
Al Sweigart

ISBN 10: 0132350882
ISBN 13: 9780132350884

01 Mar 2009
Robert Martin

ISBN 10: 1492032646
ISBN 13: 9781492032649

22 Oct 2019
Aurelien Geron

ISBN 10: 149207294X
ISBN 13: 9781492072942

01 Jul 2020
Peter Bruce

ISBN 10: 1492043451
ISBN 13: 9781492043454

06 Mar 2020
Mark Richards

ISBN 10: 1449369413
ISBN 13: 9781449369415

21 Oct 2016
Sarah Guido