Kryptonite

Effective Python: 90 Specific Ways to Write Better Python by Brett Slatkin (Engl

Description: Effective Python by Brett Slatkin Its easy to start developing programs with Python, which is why the language is so popular. However, Pythons 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 Pythons 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. Youll understand the best way to accomplish key tasks so you can write code thats 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 behaviours 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 optimising and hardening to maximise performance and quality Techniques and built-in modules that aid in debugging and testing Tools and best practices for collaborative development FORMAT Paperback LANGUAGE English CONDITION Brand New Author Biography Brett Slatkin is a principal software engineer at Google. He is the technical co-founder of Google Surveys, the co-creator of the PubSubHubbub protocol, and he launched Googles first cloud computing product (App Engine). Fourteen years ago, he cut his teeth using Python to manage Googles enormous fleet of servers. Outside of his day job, he likes to play piano and surf (both poorly). He also enjoys writing about programming-related topics on his personal website . He earned his B.S. in computer engineering from Columbia University in the City of New York. He lives in San Francisco. Table of Contents Preface Chapter 1 Pythonic Thinking Chapter 2 Lists and Dictionaries Chapter 3 Functions Chapter 4 Comprehensions and Generators Chapter 5 Classes and Interfaces Chapter 6 Metaclasses and Attributes Chapter 7 Concurrency and Parallelism Chapter 8 Robustness and Performance Chapter 9 Testing and Debugging Chapter 10 Collaboration Index Review "I have been recommending this book enthusiastically since the first edition appeared in 2015. This new edition, updated and expanded for Python 3, is a treasure trove of practical Python programming wisdom that can benefit programmers of all experience levels." –Wes McKinney, Creator of Python Pandas project, Director of Ursa Labs "If youre coming from another language, this is your definitive guide to taking full advantage of the unique features Python has to offer. Ive been working with Python for nearly twenty years and I still learned a bunch of useful tricks, especially around newer features introduced by Python 3. Effective Python is crammed with actionable advice, and really helps define what our community means when they talk about Pythonic code." –Simon Willison, Co-creator of Django "Ive been programming in Python for years and thought I knew it pretty well. Thanks to this treasure trove of tips and techniques, Ive discovered many ways to improve my Python code to make it faster (e.g., using bisect to search sorted lists), easier to read (e.g., enforcing keyword-only arguments), less prone to error (e.g., unpacking with starred expressions), and more Pythonic (e.g., using zip to iterate over lists in parallel). Plus, the second edition is a great way to quickly get up to speed on Python 3 features, such as the walrus operator, f-strings, and the typing module." –Pamela Fox, Creator of Khan Academy programming courses "Now that Python 3 has finally become the standard version of Python, its already gone through eight minor releases and a lot of new features have been added throughout. Brett Slatkin returns with a second edition of Effective Python with a huge new list of Python idioms and straightforward recommendations, catching up with everything thats introduced in version 3 all the way through 3.8 that well all want to use as we finally leave Python 2 behind. Early sections lay out an enormous list of tips regarding new Python 3 syntaxes and concepts like string and byte objects, f-strings, assignment expressions (and their special nickname you might not know), and catch-all unpacking of tuples. Later sections take on bigger subjects, all of which are packed with things I either didnt know or which Im always trying to teach to others, including Metaclasses and Attributes (good advice includes Prefer Class Decorators over Metaclasses and also introduces a new magic method __init_subclass__() I wasnt familiar with), Concurrency (favorite advice: Use Threads for Blocking I/O, but not Parallelism, but it also covers asyncio and coroutines correctly) and Robustness and Performance (advice given: Profile before Optimizing). Its a joy to go through each section as everything I read is terrific best practice information smartly stated, and Im considering quoting from this book in the future as it has such great advice all throughout. This is the definite winner for the if you only read one Python book this year... contest." –Mike Bayer, Creator of SQLAlchemy "This is a great book for both novice and experienced programmers. The code examples and explanations are well thought out and explained concisely and thoroughly. The second edition updates the advice for Python 3, and its fantastic! Ive been using Python for almost 20 years, and I learned something new every few pages. The advice given in this book will serve anyone well." –Titus Brown, Associate Professor at UC Davis "Once again, Brett Slatkin has managed to condense a wide range of solid practices from the community into a single volume. From exotic topics like metaclasses and concurrency to crucial basics like robustness, testing, and collaboration, the updated Effective Python makes a consensus view of whats Pythonic available to a wide audience." –Brandon Rhodes, Author of python-patterns.guide Long Description Updated and Expanded for Python 3 Its easy to start developing programs with Python, which is why the language is so popular. However, Pythons 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 Pythons 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. Youll understand the best way to accomplish key tasks so you can write code thats 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. Review Text "I have been recommending this book enthusiastically since the first edition appeared in 2015. This new edition, updated and expanded for Python 3, is a treasure trove of practical Python programming wisdom that can benefit programmers of all experience levels." -Wes McKinney, Creator of Python Pandas project, Director of Ursa Labs "If youre coming from another language, this is your definitive guide to taking full advantage of the unique features Python has to offer. Ive been working with Python for nearly twenty years and I still learned a bunch of useful tricks, especially around newer features introduced by Python 3. Effective Python is crammed with actionable advice, and really helps define what our community means when they talk about Pythonic code." -Simon Willison, Co-creator of Django "Ive been programming in Python for years and thought I knew it pretty well. Thanks to this treasure trove of tips and techniques, Ive discovered many ways to improve my Python code to make it faster (e.g., using bisect to search sorted lists), easier to read (e.g., enforcing keyword-only arguments), less prone to error (e.g., unpacking with starred expressions), and more Pythonic (e.g., using zip to iterate over lists in parallel). Plus, the second edition is a great way to quickly get up to speed on Python 3 features, such as the walrus operator, f-strings, and the typing module." -Pamela Fox, Creator of Khan Academy programming courses "Now that Python 3 has finally become the standard version of Python, its already gone through eight minor releases and a lot of new features have been added throughout. Brett Slatkin returns with a second edition of Effective Python with a huge new list of Python idioms and straightforward recommendations, catching up with everything thats introduced in version 3 all the way through 3.8 that well all want to use as we finally leave Python 2 behind. Early sections lay out an enormous list of tips regarding new Python 3 syntaxes and concepts like string and byte objects, f-strings, assignment expressions (and their special nickname you might not know), and catch-all unpacking of tuples. Later sections take on bigger subjects, all of which are packed with things I either didnt know or which Im always trying to teach to others, including Metaclasses and Attributes (good advice includes Prefer Class Decorators over Metaclasses and also introduces a new magic method __init_subclass__() I wasnt familiar with), Concurrency (favorite advice: Use Threads for Blocking I/O, but not Parallelism, but it also covers asyncio and coroutines correctly) and Robustness and Performance (advice given: Profile before Optimizing). Its a joy to go through each section as everything I read is terrific best practice information smartly stated, and Im considering quoting from this book in the future as it has such great advice all throughout. This is the definite winner for the if you only read one Python book this year... contest." -Mike Bayer, Creator of SQLAlchemy "This is a great book for both novice and experienced programmers. The code examples and explanations are well thought out and explained concisely and thoroughly. The second edition updates the advice for Python 3, and its fantastic! Ive been using Python for almost 20 years, and I learned something new every few pages. The advice given in this book will serve anyone well." -Titus Brown, Associate Professor at UC Davis "Once again, Brett Slatkin has managed to condense a wide range of solid practices from the community into a single volume. From exotic topics like metaclasses and concurrency to crucial basics like robustness, testing, and collaboration, the updated Effective Python makes a consensus view of whats Pythonic available to a wide audience." -Brandon Rhodes, Author of python-patterns.guide Review Quote "I have been recommending this book enthusiastically since the first edition appeared in 2015. This new edition, updated and expanded for Python 3, is a treasure trove of practical Python programming wisdom that can benefit programmers of all experience levels." -Wes McKinney, Creator of Python Pandas project, Director of Ursa Labs "If youre coming from another language, this is your definitive guide to taking full advantage of the unique features Python has to offer. Ive been working with Python for nearly twenty years and I still learned a bunch of useful tricks, especially around newer features introduced by Python 3. Effective Python is crammed with actionable advice, and really helps define what our community means when they talk about Pythonic code." -Simon Willison, Co-creator of Django "Ive been programming in Python for years and thought I knew it pretty well. Thanks to this treasure trove of tips and techniques, Ive discovered many ways to improve my Python code to make it faster (e.g., using bisect to search sorted lists), easier to read (e.g., enforcing keyword-only arguments), less prone to error (e.g., unpacking with starred expressions), and more Pythonic (e.g., using zip to iterate over lists in parallel). Plus, the second edition is a great way to quickly get up to speed on Python 3 features, such as the walrus operator, f-strings, and the typing module." -Pamela Fox, Creator of Khan Academy programming courses "Now that Python 3 has finally become the standard version of Python, its already gone through eight minor releases and a lot of new features have been added throughout. Brett Slatkin returns with a second edition of Effective Python with a huge new list of Python idioms and straightforward recommendations, catching up with everything thats introduced in version 3 all the way through 3.8 that well all want to use as we finally leave Python 2 behind. Early sections lay out an enormous list of tips regarding new Python 3 syntaxes and concepts like string and byte objects, f-strings, assignment expressions (and their special nickname you might not know), and catch-all unpacking of tuples. Later sections take on bigger subjects, all of which are packed with things I either didnt know or which Im always trying to teach to others, including Metaclasses and Attributes (good advice includes Prefer Class Decorators over Metaclasses and also introduces a new magic method __init_subclass__() I wasnt familiar with), Concurrency (favorite advice: Use Threads for Blocking I/O, but not Parallelism, but it also covers asyncio and coroutines correctly) and Robustness and Performance (advice given: Profile before Optimizing). Its a joy to go through each section as everything I read is terrific best practice information smartly stated, and Im considering quoting from this book in the future as it has such great advice all throughout. This is the definite winner for the if you only read one Python book this year... contest." -Mike Bayer, Creator of SQLAlchemy "This is a great book for both novice and experienced programmers. The code examples and explanations are well thought out and explained concisely and thoroughly. The second edition updates the advice for Python 3, and its fantastic! Ive been using Python for almost 20 years, and I learned something new every few pages. The advice given in this book will serve anyone well." -Titus Brown, Associate Professor at UC Davis "Once again, Brett Slatkin has managed to condense a wide range of solid practices from the community into a single volume. From exotic topics like metaclasses and concurrency to crucial basics like robustness, testing, and collaboration, the updated Effective Python makes a consensus view of whats Pythonic available to a wide audience." -Brandon Rhodes, Author of python-patterns.guide Feature Python best practices, patterns, shortcuts, and "pythonic" idioms you wont find anywhere else Covers Python algorithms, objects, concurrency, collaboration, built-in modules, and much more Guides you to a far deeper understanding of the Python language, so you know why its unique idioms and rules of thumb make sense Follows the enormously popular "Effective" format proven in Scott Meyers classic Effective C++ New Feature Why write a second edition? 1.There have been a large number of new language features added to Python. At the time the first edition was written (2014), Python 3.4 was the latest version of Python. When this second edition is ready to be published, the latest version will be version 3.7. Python 3.5 and 3.6 added a large number of significant language changes, specifically the async and await keywords, which fundamentally changed the nature of the language. Effective Python will begin to feel old as these language features increase in popularity. 2.The former version of Python, version 2, is being deprecated permanently in April 2020. This means that everyone whos still using Python 2 needs to finish porting their code over to Python 3. See "Standard changes" section below for full details. This deprecation was expected when the first edition was written, but that was only at the half-way point in the expected lifetime of Python 2.7 (which was first released in 2010). This second edition will be published almost at the very end of Python 2s life, meaning we can relegate Python 2 information to an appendix. 3.Python has continued to increase in popularity. It was the #8 ranked language in the TIOBE index in 2014, and its now the #5 most popular. It was the #4 ranked language in the RedMonk index in 2014, and now its the #3 most popular. Python continues to be used by major products and companies, with some recent examples being Instagram and TensorFlow (an incredibly popular machine learning library from Google). The PyCon conference is also more popular than ever. 4.The importance of supporting Windows users has increased. The first edition of the book and sample code focused on programmers who have UNIX-like environments, such as Linux or Mac OS X, which were by far the most popular environments used by Python programmers. However, as Python has grown in its appeal over the past few years, especially internationally, programmers are using Python on Windows more than ever. The Python core developers have also added many language improvements to make using Python on Windows feel more natural. Thus, the second edition should have sample code that works equally well in the three major environments. Changes to the Python Standard The Python programming language is currently undergoing a move from version 2 of the language to version 3, a slow process that has been underway for the past 10+ years. Python 3 fixes a bunch of important problems present in Python 2, causing the versions to be slightly incompatible. Critically, Python 2 will be considered deprecated and abandoned by the community on April 12, 2020. When Effective Python was first publised (March 2015), a large number of the most popular packages used by the Python community had made the move to Python 3, but there were still many popular ones that were lagging behind (notably Django and NumPy). As of this writing (August 2017), all but a tiny number of popular modules have ported to Python 3. This makes me feel confident that the deprecation will go forward as planned. Since Effective Python was published, the Python language has continued to evolve, with major new features added in each point release (e.g., 3.1, 3.2, 3.3). The language just had version 3.6 released in December 2016, and version 3.7 is scheduled to be released in June 2018. Python releases are scheduled to be roughly 18 months apart. That means version 3.8 likely wont be released until 2020. By the time the second edition of this book will be ready to be published (estimated early 2019), Python 3.7 will have been out for 6 months, and Python 2 will have one year left of life. Python version 2 will likely still be popular, since people will still have another year to port their code over to the new version. The first edition of this book chose to cover both version 2 and version 3 of Python. Python 2.7 (the final point version of Python 2) had originally been released in 2010 and was still very popular in 2015. For the second edition of this book, I believe I can remove all of the Python-2 specific content from the primary book and put it into a special appendix that serves as a historical reference. This is also where I can put advice on how to port Python 2 code over to Python 3 and adopt the best practices that I recommend. Details ISBN0134853989 Author Brett Slatkin ISBN-10 0134853989 ISBN-13 9780134853987 Edition 2nd Format Paperback Subtitle 90 Specific Ways to Write Better Python Country of Publication United States Replaces 9780134034287 DEWEY 006.76 Short Title Effective Python Language English Pages 480 Illustrator Scott Jessop Edited by Tracy Geraldine Beck Birth 1949 Affiliation Attorney, High Court, South Africa Position Professor Qualifications PT Imprint Addison Wesley Place of Publication Boston AU Release Date 2020-01-17 NZ Release Date 2020-01-17 Year 2020 Publication Date 2020-01-24 UK Release Date 2020-01-24 Publisher Pearson Education (US) Edition Description 2nd edition Series Effective Software Development Series Replaced by 9780138172183 Audience Professional & Vocational US Release Date 2020-01-24 We've got this At The Nile, if you're looking for it, we've got it. With fast shipping, low prices, friendly service and well over a million items - you're bound to find what you want, at a price you'll love! TheNile_Item_ID:126383697;

Price: 70.43 AUD

Location: Melbourne

End Time: 2024-11-16T17:55:23.000Z

Shipping Cost: 15.6 AUD

Product Images

Effective Python: 90 Specific Ways to Write Better Python by Brett Slatkin (Engl

Item Specifics

Restocking fee: No

Return shipping will be paid by: Buyer

Returns Accepted: Returns Accepted

Item must be returned within: 30 Days

ISBN-13: 9780134853987

Book Title: Effective Python

Item Height: 230 mm

Item Width: 180 mm

Author: Brett Slatkin

Publication Name: Effective Python: 90 Specific Ways to Write Better Python

Format: Paperback

Language: English

Publisher: Pearson Education (Us)

Subject: Computer Science

Publication Year: 2020

Type: Textbook

Item Weight: 880 g

Number of Pages: 480 Pages

Recommended

Effective PyCharm: Learn the PyCharm IDE with a Hands-on Approach (Paperback or
Effective PyCharm: Learn the PyCharm IDE with a Hands-on Approach (Paperback or

$40.08

View Details
Fluent Python Clear Concise and Effective Programming by Luciano Ramalho
Fluent Python Clear Concise and Effective Programming by Luciano Ramalho

$54.99

View Details
Python for Devops : Learn Ruthlessly Effective Automation, Paperback by Gift,...
Python for Devops : Learn Ruthlessly Effective Automation, Paperback by Gift,...

$28.99

View Details
Effective Python: 59 Specific Ways to Write Better Python (... by Slatkin, Brett
Effective Python: 59 Specific Ways to Write Better Python (... by Slatkin, Brett

$8.65

View Details
Effective Python: 90 Specific Ways to Write Better Python 2nd Ed Slatkin PB
Effective Python: 90 Specific Ways to Write Better Python 2nd Ed Slatkin PB

$24.99

View Details
Python Testing with Pytest: Simple, Rapid, Effective, and Scalable [Paperback]
Python Testing with Pytest: Simple, Rapid, Effective, and Scalable [Paperback]

$41.52

View Details
Fluent Python: Clear, Concise, and Effective Programming - Paperback - VERY GOOD
Fluent Python: Clear, Concise, and Effective Programming - Paperback - VERY GOOD

$29.81

View Details
Python Testing with pytest: Simple, Rapid, Effective, and Scalable - GOOD
Python Testing with pytest: Simple, Rapid, Effective, and Scalable - GOOD

$11.64

View Details
Interactive Data Visualization with Python: Present your data as an effective...
Interactive Data Visualization with Python: Present your data as an effective...

$60.32

View Details
Python for Devops : Learn Ruthlessly Effective Automation, Paperback by Gift,...
Python for Devops : Learn Ruthlessly Effective Automation, Paperback by Gift,...

$45.81

View Details