Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Mastering Python 2E
Mastering Python 2E

Mastering Python 2E: Write powerful and efficient code using the full range of Python's capabilities , Second Edition

eBook
$28.99
Paperback
$49.99
Subscription
Free Trial
Renews at $12.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Key benefits

  • 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

Description

Even if you find writing Python code easy, writing code that is efficient, maintainable, and reusable is not so straightforward. Many of Python’s 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 code’s 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

Who is this book 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 haven’t yet encountered every topic discussed in this book. A good understanding of Python programming is necessary

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 Python's capabilities with C/C++ libraries and system calls

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 20, 2022
Length: 710 pages
Edition : 2nd
Language : English
ISBN-13 : 9781800202108
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 20, 2022
Length: 710 pages
Edition : 2nd
Language : English
ISBN-13 : 9781800202108
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$12.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$129.99 billed annually
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$179.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 146.97
Learn Python Programming, 3rd edition
$46.99
Mastering Python 2E
$49.99
Python Object-Oriented Programming
$49.99
Total $ 146.97 Stars icon
Visually different images

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(65 Ratings)
5 star 73.8%
4 star 21.5%
3 star 1.5%
2 star 0%
1 star 3.1%
Filter icon Filter
Top Reviews

Filter reviews by




Mathias Hounsa Jul 28, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It’s a great read, just exceeds my current level
Amazon Verified review Amazon
Amazon Customer May 22, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: I received a copy for free for an unbiased reviewAs a game developer that uses Python occasionally for side tasks (e.g. automation, tools), this book definitely helps reinforce my knowledge of the language. It covers practical advanced topics such as design patterns, unit testing and performance, which lesser covered in other books for beginners. It also suggests and demonstrates useful modules on relevant topics. I fully recommend this book to people who want to have a deeper understanding of Python.
Amazon Verified review Amazon
Sanjay Jun 27, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very neat explanation of each topic. Enjoyed reading this book.
Amazon Verified review Amazon
Ryan Zurrin Jun 27, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is for EVERYONE who wishes to learn the best ways to use python. It starts you off with the basics of environment setup, stressing how we use a different environment for each projects which makes it possible to use several different versions of the same library without any clashes. A must for anyone programming in python.It then goes over how to manage dependencies properly, which python does wonderfully with the different package managers it uses. It gets into pythonic syntax and how it differs from other languages. It really does a great job at showing through example after example of how to properly write good python code. It also covers many of the common pitfalls that many new and even experienced python programmers face and shows you how to not fall into these traps.It gets into many design patterns, talks about functional programming, brings us through how to use features such as decorators to make our code super charged with some of the best aspects of the python language. I mean this book really covers it all, getting into things like python generators, which is one of my favorite features of using python, as it really helps you to write clean and efficient code when used properly.In addition to all this it goes into topics like testing, debugging, and performance optimizations, as well as how to properly document using some amazing tools like Sphinx. As well each section finishes with some exercises to help you solidify what you have learned. I did many of these and found the exercises to be great at reinforcing everything I was learning. All the examples of the code throughout the book are available on GitHub as well, which makes it easy to follow along and try the examples out without having to retype everything from scratch.All in all this is a great book and I recommend it for anyone who is going to be using python. I am sure regardless of how much experience you already have or how little you have, there is something in this book for you.
Amazon Verified review Amazon
Andre Sep 03, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
My view of the book achieves what it indicates it would as it takes you on a well-designed path to enhance your python knowledge. Excellent development and learning path spread over 18 chapters help you to master your python skills. It will take a permanent place on my shelf as a reference guide.The knowledge and code examples are well thought out and give you a great base and test of the book's knowledge.It is not a beginner's book. This book is a next-phase mastering phase of development.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.