Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Secret Recipes of the Python Ninja: Over 70 recipes that uncover powerful programming tactics in Python

Buy

Test your Python programming skills by solving real-world problems

Key Features

  • Access built-in documentation tools and improve your code.
  • Discover how to make the best use of decorator and generator functions
  • Enhance speed and improve concurrency by conjuring tricks from the PyPy project

Book Description

This book covers the unexplored secrets of Python, delve into its depths, and uncover its mysteries.

You'll unearth secrets related to the implementation of the standard library, by looking at how modules actually work. You'll understand the implementation of collections, decimals, and fraction modules. If you haven't used decorators, coroutines, and generator functions much before, as you make your way through the recipes, you'll learn what you've been missing out on.

We'll cover internal special methods in detail, so you understand what they are and how they can be used to improve the engineering decisions you make. Next, you'll explore the CPython interpreter, which is a treasure trove of secret hacks that not many programmers are aware of. We'll take you through the depths of the PyPy project, where you'll come across several exciting ways that you can improve speed and concurrency.

Finally, we'll take time to explore the PEPs of the latest versions to discover some interesting hacks.

What you will learn

  • Know the differences between .py and .pyc files
  • Explore the different ways to install and upgrade Python packages
  • Understand the working of the PyPI module that enhances built-in decorators
  • See how coroutines are different from generators and how they can simulate multithreading
  • Grasp how the decimal module improves floating point numbers and their operations
  • Standardize sub interpreters to improve concurrency
  • Discover Python's built-in docstring analyzer

Who This Book Is For

Whether you've been working with Python for a few years or you're a seasoned programmer, you'll have a lot of new tricks to walk away with.

Table of Contents

  1. Working with Python Modules
  2. Utilizing the Python Interpreter
  3. Working with Decorators
  4. Using Python Collections
  5. Generators, Coroutines, and Parallel Processing
  6. Working with Python's Math Module
  7. Improving Python Performance with PyPy
  8. Python Enhancement Proposals
  9. Documenting with LyX
(HTML tags aren't allowed.)

Linux Appliance Design: A Hands-On Guide to Building Linux Appliances
Linux Appliance Design: A Hands-On Guide to Building Linux Appliances
Linux appliances are computers that serve a single, well-defined purpose. Modern appliances are complex machines, with processors, operating systems, and application software. For example, the Tivo is essentially a Linux-based computer with a single purpose: recording television. While there are books that tell readers how to run Linux on embedded...
Finite Frames: Theory and Applications (Applied and Numerical Harmonic Analysis)
Finite Frames: Theory and Applications (Applied and Numerical Harmonic Analysis)

Hilbert space frames have long served as a valuable tool for signal and image processing due to their resilience to additive noise, quantization, and erasures, as well as their ability to capture valuable signal characteristics.  More recently, finite frame theory has grown into an important research topic in its own right, with a myriad...

ABC of Clinical Haematology
ABC of Clinical Haematology
This is a short volume which includes chapters on all areas of haematology written by people who deal with these diseases on a daily basis. The book provides descriptions of these diseases and describes the pathways involved in diagnosis and treatment. We have used full colour throughout and the book is heavily illustrated, using clinical material...

MasterCases in Hand and Wrist Surgery
MasterCases in Hand and Wrist Surgery

Textbook surgical education usually follows a predictable format involving fairly in-depth descriptions of various pathologic conditions including etiology, pathophysiology, symptomatology, diagnostic procedures, conservative management, and surgical treatment. Although there is variation in the emphasis different books place on each...

A Practical Guide to Data Structures and Algorithms using Java
A Practical Guide to Data Structures and Algorithms using Java

Although traditional texts present isolated algorithms and data structures, they do not provide a unifying structure and offer little guidance on how to appropriately select among them. Furthermore, these texts furnish little, if any, source code and leave many of the more difficult aspects of the implementation as exercises. A fresh...

Visual Basic Design Patterns VB 6.0 and VB.NET
Visual Basic Design Patterns VB 6.0 and VB.NET

Design patterns provide programmers with a convenient way to reuse object-oriented code across projects and between programmers, offering easy, time-saving solutions to commonly recurring problems in software design. A practical guide to writing Visual Basic (VB6 and VB.NET) programs using some of the most common design patterns,...

©2019 LearnIT (support@pdfchm.net) - Privacy Policy