• Complain

Rick van Hattem - Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition

Here you can read online Rick van Hattem - Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2022, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Rick van Hattem Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition
  • Book:
    Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2022
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Use advanced features of Python to write high-quality, readable code and packages

Key Features
  • Extensively updated for Python 3.10 with new chapters on design patterns, scientific programming, machine learning, and interactive Python
  • Shape your scripts using key concepts like concurrency, performance optimization, asyncio, and multiprocessing
  • Learn how advanced Python features fit together to produce maintainable code
Book Description

Even if you find writing Python code easy, writing code that is efficient, maintainable, and reusable is not so straightforward. Many of Pythons capabilities are underutilized even by more experienced programmers. Mastering Python, Second Edition, is an authoritative guide to understanding advanced Python programming so you can write the highest quality code. This new edition has been extensively revised and updated with exercises, four new chapters and updates up to Python 3.10.

Revisit important basics, including Pythonic style and syntax and functional programming. Avoid common mistakes made by programmers of all experience levels. Make smart decisions about the best testing and debugging tools to use, optimize your codes performance across multiple machines and Python versions, and deploy often-forgotten Python features to your advantage. Get fully up to speed with asyncio and stretch the language even further by accessing C functions with simple Python calls. Finally, turn your new-and-improved code into packages and share them with the wider Python community.

If you are a Python programmer wanting to improve your code quality and readability, this Python book will make you confident in writing high-quality scripts and taking on bigger challenges

What you will learn
  • Write beautiful Pythonic code and avoid common Python coding mistakes
  • Apply the power of decorators, generators, coroutines, and metaclasses
  • Use different testing systems like pytest, unittest, and doctest
  • Track and optimize application performance for both memory and CPU usage
  • Debug your applications with PDB, Werkzeug, and faulthandler
  • Improve your performance through asyncio, multiprocessing, and distributed computing
  • Explore popular libraries like Dask, NumPy, SciPy, pandas, TensorFlow, and scikit-learn
  • Extend Pythons capabilities with C/C++ libraries and system calls
Who this book is for

This book will benefit more experienced Python programmers who wish to upskill, serving as a reference for best practices and some of the more intricate Python techniques. Even if you have been using Python for years, chances are that you havent yet encountered every topic discussed in this book. A good understanding of Python programming is necessary

Table of Contents
  1. Getting Started One Environment per Project
  2. Interactive Python Interpreters
  3. Pythonic Syntax and Common Pitfalls
  4. Pythonic Design Patterns
  5. Functional Programming Readability Versus Brevity
  6. Decorators Enabling Code Reuse by Decorating
  7. Generators and Coroutines Infinity, One Step at a Time
  8. Metaclasses Making Classes (Not Instances) Smarter
  9. Documentation How to Use Sphinx and reStructuredText
  10. Testing and Logging Preparing for Bugs
  11. Debugging Solving the Bugs
  12. Performance Tracking and Reducing Your Memory and CPU Usage
  13. asyncio Multithreading without Threads
  14. Multiprocessing When a Single CPU Core Is Not Enough
  15. Scientific Python and Plotting
  16. Artificial Intelligence
  17. Extensions in C/C++, System Calls, and C/C++ Libraries
  18. Packaging Creating Your Own Libraries or Applications

Rick van Hattem: author's other books


Who wrote Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition? Find out the surname, the name of the author of the book and a list of all author's works by series.

Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Mastering Python Second Edition Write powerful and efficient code using the - photo 1

Mastering Python

Second Edition

Write powerful and efficient code using the full range of Pythons capabilities

Rick van Hattem

BIRMINGHAMMUMBAI Python and the Python Logo are trademarks of the Python - photo 2

BIRMINGHAMMUMBAI

Python and the Python Logo are trademarks of the Python Software Foundation.

Mastering Python

Second Edition

Copyright 2022 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Senior Publishing Product Manager: Dr. Shailesh Jain

Contracting Acquisition Editor: Ben Renow-Clarke

Acquisition Editor Peer Reviews: Suresh Jain

Project Editor: Janice Gonsalves

Content Development Editor: Lucy Wan, Joanne Lovell

Copy Editor: Safis Editing

Technical Editor: Aditya Sawant

Proofreader: Safis Editing

Indexer: Tejal Daruwale Soni

Presentation Designer: Ganesh Bhadwalkar

First published: April 2016

Second edition: May 2022

Production reference: 1120522

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham

B3 2PB, UK.

ISBN 978-1-80020-772-1

www.packt.com

Contributors
About the author

Rick van Hattem is an entrepreneur who has founded and sold several successful start-ups. His expertise is in designing and scaling system architectures to many millions of users and/or large amounts of data that need to be accessed in real time. Hes been programming for well over 25 years and has over 20 years of experience with Python. Rick has done consulting for many companies including (Y-Combinator) start-ups, banks, and airports. One of the start-ups he founded, Fashiolista.com, was one of the largest social networks for fashion in the world, featuring millions of users. He also wrote Mastering Python, First Edition, and he was one of the technical reviewers for PostgreSQL Server Programming, Second Edition.

For my wife, who is always there for me. For my sister, who always goes above and beyond to help. For my mother, who raised me to be inquisitive. And for my sweet children, who pique my curiosity and allow me to learn every day.

About the reviewer

Alexander Afanasyev is a software engineer with about 15 years of diverse experience in a variety of different domains and roles. Currently, Alexander is an independent contractor pursuing ideas in the space of computer vision, NLP, and building advanced data collections systems in the cyber and physical threat intelligence domains. Outside of daily work, he is an active contributor to Stack Overflow and GitHub. Previously, Alexander helped review the Selenium Testing Cookbook and Advanced Natural Language Processing with Transformers books by Packt Publishing.

I would like to thank the author of the book for the incredibly hard work and comprehensive content; the wonderful team of editors and coordinators with excellent communication skills; and my family, who was and always are supportive of my ideas and my work.

Join our community on Discord

Join our communitys Discord space for discussions with the author and other readers: https://discord.gg/QMzJenHuJf

Preface Python is a language that is easy to learn and anyone can get started - photo 3

Preface

Python is a language that is easy to learn and anyone can get started with a Hello, World! script within minutes. Mastering Python, however, is a completely different question.

Every programming problem has multiple possible solutions and choosing the Pythonic (idiomatic Python) solution is not always obvious; it can also change with time. This book will not only illustrate a range of different and new techniques but also explain where and when a method should be applied. To quote The Zen of Python by Tim Peters:

There should be oneand preferably only oneobvious way to do it. Although that way may not be obvious at first unless youre Dutch.

Even though it does not always help, the author of this book is actually Dutch.

This book is not a beginners guide to Python. It is a book that can teach you about the more advanced techniques possible within Python, such as asyncio. It even includes Python 3.10 features, such as structural pattern matching (Pythons switch statement), in great detail.

As a Python programmer with many years of experience, I will attempt to rationalize the choices made in this book with relevant background information. These rationalizations are in no way strict guidelines, however, as several of these cases boil down to personal style in the end. Just know that they stem from experience and are, in many cases, the solutions recommended by the Python community.

Some of the references in this book might not be obvious to you if you are not a fan of Monty Python. This book regularly uses spam and eggs instead of foo and bar in code samples because the Python programming language was named after Monty Python. To provide some background information about spam and eggs, I would recommend you watch the Spam sketch from Monty Python. It is positively silly.

Who this book is for

This book is meant for programmers who are already experienced in Python and want to learn more about the advanced features that Python offers. With the depth of this book, I can guarantee that almost anyone can learn something new here if they wish.

If you only know the basics of Python, however, dont worry. The book starts off relatively slow and builds to the more advanced subjects, so you should be fine.

What this book covers

Chapter 1, Getting Started One Environment per Project, demonstrates several options for managing Python versions, virtual environments, and package dependencies.

Chapter 2, Interactive Python Interpreters, explores Python interpreter options. Pythons default interpreter is perfectly functional, but better alternatives are available. With a few modifications or a replacement, you can get auto-completion, syntax highlighting, and graphical output.

Chapter 3, Pythonic Syntax and Common Pitfalls, discusses Pythonic coding, which is the art of writing beautiful and readable Python code. This chapter is not the holy grail, but it is filled with tips and best practices to achieve something along those lines.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition»

Look at similar books to Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition»

Discussion, reviews of the book Mastering Python: Write powerful and efficient code using the full range of Pythons capabilities, 2nd Edition and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.