Mastering Python

Master the art of writing beautiful and powerful Python by using all of the features that Python 3.5 offers

Mastering Python

Rick van Hattem

22 customer reviews
Master the art of writing beautiful and powerful Python by using all of the features that Python 3.5 offers
Mapt Subscription
FREE
$24.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$22.40
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Mastering Python Book Cover
Mastering Python
$ 31.99
$ 22.40
Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781785289729
Paperback486 pages

Book Description

Python is a dynamic programming language. It is known for its high readability and hence it is often the first language learned by new programmers. Python being multi-paradigm, it can be used to achieve the same thing in different ways and it is compatible across different platforms. Even if you find writing Python code easy, writing code that is efficient, easy to maintain, and reuse is not so straightforward.

This book is an authoritative guide that will help you learn new advanced methods in a clear and contextualised way. It starts off by creating a project-specific environment using venv, introducing you to different Pythonic syntax and common pitfalls before moving on to cover the functional features in Python. It covers how to create different decorators, generators, and metaclasses. It also introduces you to functools.wraps and coroutines and how they work. Later on you will learn to use asyncio module for asynchronous clients and servers. You will also get familiar with different testing systems such as py.test, doctest, and unittest, and debugging tools such as Python debugger and faulthandler. You will learn to optimize application performance so that it works efficiently across multiple machines and Python versions. Finally, it will teach you how to access C functions with a simple Python call. By the end of the book, you will be able to write more advanced scripts and take on bigger challenges.

Table of Contents

Chapter 2: Pythonic Syntax, Common Pitfalls, and Style Guide
Chapter 3: Containers and Collections – Storing Data the Right Way
Chapter 6: Generators and Coroutines – Infinity, One Step at a Time
Chapter 7: Async IO – Multithreading without Threads
Chapter 9: Documentation – How to Use Sphinx and reStructuredText
Chapter 11: Debugging – Solving the Bugs
Chapter 14: Extensions in C/C++, System Calls, and C/C++ Libraries

What You Will Learn

  • Create a virtualenv and start a new project
  • Understand how and when to use the functional programming paradigm
  • Get familiar with the different ways the decorators can be written in
  • Understand the power of generators and coroutines without digressing into lambda calculus
  • Create metaclasses and how it makes working with Python far easier
  • Generate HTML documentation out of documents and code using Sphinx
  • Learn how to track and optimize application performance, both memory and cpu
  • Use the multiprocessing library, not just locally but also across multiple machines
  • Get a basic understanding of packaging and creating your own libraries/applications

Authors

Table of Contents

Chapter 2: Pythonic Syntax, Common Pitfalls, and Style Guide
Chapter 3: Containers and Collections – Storing Data the Right Way
Chapter 6: Generators and Coroutines – Infinity, One Step at a Time
Chapter 7: Async IO – Multithreading without Threads
Chapter 9: Documentation – How to Use Sphinx and reStructuredText
Chapter 11: Debugging – Solving the Bugs
Chapter 14: Extensions in C/C++, System Calls, and C/C++ Libraries

Book Details

ISBN 139781785289729
Paperback486 pages
Read More
From 22 reviews

Read More Reviews

Recommended for You

Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 28.00
Expert Python Programming - Second Edition Book Cover
Expert Python Programming - Second Edition
$ 35.99
$ 25.20
Python: Journey from Novice to Expert Book Cover
Python: Journey from Novice to Expert
$ 69.99
$ 49.00
Python Machine Learning - Second Edition Book Cover
Python Machine Learning - Second Edition
$ 31.99
$ 10.00
Modular Programming with Python Book Cover
Modular Programming with Python
$ 31.99
$ 22.40
Python Data Structures and Algorithms Book Cover
Python Data Structures and Algorithms
$ 35.99
$ 25.20