An indispensable collection of practical tips and real-world advice for tackling common Python problems and taking your code to the next level. Features interviews with high-profile Python developers who share their tips, tricks, best practices, and real-world advice gleaned from years of experience.
Sharpen your Python skills as you dive deep into the Python programming language with Serious Python. You'll cover a range of advanced topics like multithreading and memorization, get advice from experts on things like designing APIs and dealing with databases, and learn Python internals to help you gain a deeper understanding of the language itself. Written for developers and experienced programmers, Serious Python brings together over 15 years of Python experience to teach you how to avoid common mistakes, write code more efficiently, and build better programs in less time.
As you make your way through the book's extensive tutorials, you'll learn how to start a project and tackle topics like versioning, layouts, coding style, and automated checks. You'll learn how to package your software for distribution, optimize performance, use the right data structures, define functions efficiently, pick the right libraries, build future-proof programs, and optimize your programs down to the bytecode. You'll also learn how to:
- Make and use effective decorators and methods, including abstract, static, and class methods - Employ Python for functional programming using generators, pure functions, and functional functions - Extend flake8 to work with the abstract syntax tree (AST) to introduce more sophisticated automatic checks into your programs - Apply dynamic performance analysis to identify bottlenecks in your code - Work with relational databases and effectively manage and stream data with PostgreSQL
If you've been looking for a way to take your Python skills from good to great, Serious Python will help you get there. Learn from the experts and get seriously good at Python with Serious Python!
A Free Software hacker since 1999. He wears multiple hats in the Free and Open Source community, among them: Debian developer, Freedesktop contributor, GNU Emacs committer, the awesome window manager creator, Project Technical Leader for OpenStack Telemetry and contributor to Python.
For the last few years, he has been hacking using Python a lot, especially when working on OpenStack, a cloud-computing platform. During that time, He had the chance to work with many fabulous Python hackers, and learned a lot from them and the surrounding community.
This is an AWESOME book that has completely transformed the way I code in Python. That might sound like the opening to a parody review, but I'm being sincere. One of the best things about Python is that it has a low barrier to entry and it's easy to get started programming. One of the worst things about Python is that it has a low barrier to entry and it's easy to get started programming. I've been going through the past 15ish years with just a surface-level understanding of my favorite programming language.
I don't think I'm the intended audience for this book. I'm a hobbyist who's done some simple programming in the past and is new to Python. I've gotten through a couple of beginner books that start with 'Hello world!', and picked this up because I was excitedly running around Python tutorials and Stack Overflow like Jack Skellington, going "Ooh, what's this? What's this?" I was looking for a book that would answer what's that.
This seems more targeted towards professional, or at least experienced, programmers who are new to Python but not new to the concepts. Some chapters were just plain over my head.
That said, I still got a lot of good out of it. The chapter on unit testing was super useful and the advice to wrap your own API around external libraries was a huge help on a personal project.
Really enjoy the content of this book. Despite not really deep, the contents show some critical concepts that you'll use often day-to-day basis. This book introduce various tools and best practices to solve specific problems (e.g: Unit testing, Profiling, Multithread vs Multiprocess, Documentation).
An interesting book on some advanced features of Python and its ecosystem. It is short and easily comprehensible. The code examples short and up to the point, not even a single line longer than they should be. I didn't find all the chapters equally interesting, but this might depend on the use-cases someone has with the language.
The only problem of the book: it is a bit old (the Python ecosystem changes fast), and this can be seen by the extensive references of Python 2 and Python 3 migrations. I don't think that these issues are relevant anymore.
Initially, I borrowed this book from the library, but ended up purchasing it myself for the wealth of information on a variety of topics in Python. I decided to read it cover to cover but a lot of the topics weren't immediately applicable to problems I've encountered, so it was slow-going in some spots. Overall, it was well worth the read and I've already returned to some sections for reference while coding. I can see myself using this book for a long time.
It covers many aspects of Python, which may or may not apply directly to what you do. In my case, I can say I extracted pure gold from three chapters, which are pretty much what led me to read read it. The other chapters were read even when I do not work directly with as many things, since I use Python for scripting, but nevertheless, I got so much value. I really recommend it, since it provides many tips that I have not seen in other books so far.