Modern Python Cookbook, Second Edition

- 50%

Original price was: $5.00.Current price is: $2.50.

Add to wishlistAdded to wishlistRemoved from wishlist 0

Product Specs:

  • File Type: PDF
  • File Size: 6.7 MB
  • Book Language: English
  • Total Page Count: 823
  • Instant Download

133 Practical Recipes for Modern Python 💻

Modern Python Cookbook, Second Edition is a task-focused guide to writing clear, idiomatic Python 3.8. Steven F. Lott presents 133 recipes that address everyday programming problems, from choosing the right numeric type to structuring larger applications with classes, functional tools, and reliable tests.

Rather than treating Python as a list of syntax rules, the book shows how experienced developers make design choices. Each recipe states a problem, outlines a solution, and explains why the approach works—so you can adapt the pattern to your own code instead of copying it blindly.

What the Recipes Cover 🧠

  • Numbers, strings, and tuples: large integers, decimal vs. float, floor division, f-strings, Unicode, and NamedTuples.
  • Statements and syntax: script structure, long lines, RST docstrings, walrus operator, exception matching, and context managers.
  • Functions: type hints, optional parameters, keyword-only arguments, positional-only parameters, partials, and recursion.
  • Data structures: lists, sets, dictionaries, slicing, comprehensions, shallow vs. deep copies, and type hints for collections.
  • Classes and objects: encapsulation, dataclasses, frozen dataclasses, __slots__, properties, inheritance, composition, and duck typing.
  • Functional programming: generators, transformations, filters, reductions, partial functions, and immutable data structures.
  • Input/output: pathlib, CSV, JSON, YAML, XML, HTML, and logical record layouts.
  • Testing: doctest, unittest, pytest, and combining test tools for more reliable code.

Built for Python 3.8

This second edition has been updated for Python 3.8, including newer language features such as the walrus operator, positional-only parameters, and improved typing patterns. The recipes remain practical and focused, but the code reflects the Python that many teams use today.

Who This Book Is For

Modern Python Cookbook is aimed at developers who already know the basics of Python and want to write more expressive, maintainable code. It is especially useful if you work with Python regularly and want a reference you can revisit when a specific design question comes up—whether you are cleaning data, designing a class, writing tests, or improving an older script.

Why a Recipe Format Works

Programming problems rarely arrive in textbook order. The recipe format lets you jump to the topic you need, read a focused explanation, and return to your project with a concrete approach. The book works as both a cover-to-cover study of modern Python practice and a reference for the moments when you want a second opinion on structure, style, or standard-library tools.

Inside the Second Edition

Across its chapters, the book moves from core data handling into functions, object-oriented design, functional techniques, file formats, and testing. The result is a broad but connected view of Python development, with each recipe adding another tool to your everyday toolkit.

Add Modern Python Cookbook, Second Edition to your digital library and keep a practical Python reference close at hand.

Additional Book Details

Book specifications and digital file information

File Size
6.7 MB
File Type
PDF
Language
English
Page Count
823
Publisher
Packt Publishing
ISBN
ISBN_13: 978-1-80020-745-5
Edition
Second Edition
Authors
Steven F. Lott | Alex Martelli (Reviewers) | Anna Martelli Ravenscroft (Reviewers)
Copyright
© 2020 Packt Publishing
File Information
Modern Python Cookbook, Second Edition.pdf
Additional Information
publication_location: Birmingham B3 2PB, UK | Country_of_Publication: United Kingdom | Production_Reference: 1280720 | Subtitle: 133 recipes to develop flawless and expressive programs in Python 3.8

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
Write a review

There are no reviews yet.

Be the first to review “Modern Python Cookbook, Second Edition”

Added to wishlistRemoved from wishlist 0
- 50%
Python Object-Oriented Programming

Python Object-Oriented Programming

Sold by Steven F. Lott
Original price was: $5.00.Current price is: $2.50.
Added to wishlistRemoved from wishlist 0
- 50%
Functional Python Programming: Use a Functional Approach to Write Succinct, Expressive, and Efficient Python Code (Third Edition)

Functional Python Programming: Use a Functional Approach to Write Succinct, Expressive, and Efficient Python Code (Third Edition)

Sold by Steven F. Lott
Original price was: $34.19.Current price is: $17.09.
Modern Python Cookbook, Second Edition
Modern Python Cookbook, Second Edition

Original price was: $5.00.Current price is: $2.50.

Your Next Chapter Starts Here.

Discover digital books that spark curiosity, inspire fresh ideas, and encourage learning. Explore the BooksStore collection and find your next great read.

Digital eBooks only
Downloadable file formats
Customer support available
Need Assistance?

Email us at [email protected]

Customer Support

General enquiries: response within 24–48 hours. Some issues may require additional time to resolve.

A World of Ideas Awaits

Good reads. Fresh possibilities.

Find something new to learn, enjoy, or explore. Browse the BooksStore collection and discover your next digital read.

Browse eBooks

Digital books only. No physical shipping. File formats vary by product.

Books Store
Logo
Shopping cart