Jump to ratings and reviews
Rate this book

Modern Python Cookbook

Rate this book
The latest in modern Python recipes for the busy modern programmer About This Book - Develop succinct, expressive programs in Python - Learn the best practices and common idioms through carefully explained and structured recipes - Discover new ways to apply Python for the new age of development Who This Book Is For The book is for web developers, programmers, enterprise programmers, engineers, big data scientist, and so on. If you are a beginner, Python Cookbook will get you started. If you are experienced, it will expand your knowledge base. A basic knowledge of programming would help. What You Will Learn - See the intricate details of the Python syntax and how to use it to your advantage - Improve your code readability through functions in Python - Manipulate data effectively using built-in data structures - Get acquainted with advanced programming techniques in Python - Equip yourself with functional and statistical programming features - Write proper tests to be sure a program works as advertised - Integrate application software using Python In Detail Python is the preferred choice of developers, engineers, data scientists, and hobbyists everywhere. It is a great scripting language that can power your applications and provide great speed, safety, and scalability. By exposing Python as a series of simple recipes, you can gain insight into specific language features in a particular context. Having a tangible context helps make the language or standard library feature easier to understand. This book comes with over 100 recipes on the latest version of Python. The recipes will benefit everyone ranging from beginner to an expert. The book is broken down into 13 chapters that build from simple language concepts to more complex applications of the language. The recipes will touch upon all the necessary Python concepts related to data structures, OOP, functional programming, as well as statistical programming. You will get acquainted with the nuances of Python syntax and how to effectively use the advantages that it offers. You will end the book equipped with the knowledge of testing, web services, and configuration and application integration tips and tricks. The recipes take a problem-solution approach to resolve issues commonly faced by Python programmers across the globe. You will be armed with the knowledge of creating applications with flexible logging, powerful configuration, and command-line options, automated unit tests, and good documentation. Style and approach This book takes a recipe-based approach, where each recipe addresses specific problems and issues. The recipes provide discussions and insights and an explanation of the problems.

583 pages, ebook

Published November 30, 2016

27 people are currently reading
102 people want to read

About the author

Steven F. Lott

18 books6 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
8 (29%)
4 stars
7 (25%)
3 stars
5 (18%)
2 stars
5 (18%)
1 star
2 (7%)
Displaying 1 - 4 of 4 reviews
Profile Image for Jascha.
151 reviews
July 30, 2020
I was expecting more from this book, much more. Topics, that is, problems you face while programming with Python, are split into topics and range from files, classes up to more generic and basic topics such as naming your stuff.

Being a relatively new book, I was expecting way more Python 3.6+ topics covered. Maybe the differences/porting from Python 2 on those specific topics. That's not really the case.

All the recipes are very basic and those who are already moderately comfortable with the language won't reallt find anything useful.
Profile Image for Vlad Bezden.
236 reviews14 followers
May 23, 2021
I read all Steven's books, and I like them a lot. This one was no exception—great examples for many different use cases. I really enjoyed and read several times chapter about testing using pytest. If you want to learn about python testing without reading books with many pages, this chapter will give you most of what you need.
Another thing that I like about this book that it's truly embracing new python features, such as data typing. Whole book, every single function uses typing, and in many cases, Steve explains why he decided to use TypedDict instead of NamedTuple or dataclass.
I read this book from beginning to end, and I will continue to use it as a reference.
I also recommend reading and look at the code at GitHub since it has much more code than in the book, where you will learn much more from the code.
Profile Image for Nickolai.
891 reviews8 followers
February 10, 2024
Самый главный недостаток книги - это непонимание, как ее следует читать. Если от корки до корки, то в каждом рецепте очень много повторений из предыдущих разделов. Выбрать же только интересующие тебя рецепты во многих случаях не получится, так как в них есть отсылки к коду из других глав. В результате, выбрав произвольный рецепт, нередко отсылаешься к другому, а потом еще к третьему и так далее. Кроме того, автор льет чересчур много воды, не относящейся к рассматриваемой в каждом разделе теме, и выбирает неоправданно сложные примеры для объяснения даже самых примитивных идей.
Profile Image for numbworks.
22 reviews
April 25, 2021
The book is organized as a sequence of totally unrelated recipes, and each of them list dozens of methods for each type or argument - for ex. ten ways to chop a string. This book is -extremely boring- and pretty much useless. It also shows commands running in the REPL one by one instead of a .py script, which makes everything very hard to read. It's only good as toilet paper, avoid.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.