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!
Program a graphical adventure game in this hands-on, beginner-friendly introduction to coding in the Python language. Launch into coding with Mission Python, a space-themed guide to building a complete computer game in Python. You´ll learn programming fundamentals like loops, strings, and lists as you build Escape!, an exciting game with a map to explore, items to collect, and tricky logic puzzles to solve. As you work through the book, you´ll build exercises and mini-projects, like making a spacewalk simulator and creating an astronaut´s safety checklist that will put your new Python skills to the test. You´ll learn how to use Pygame Zero, a free resource that lets you add graphics and sound effects to your creations, and you´ll get useful game-making tips, such as how to design fun puzzles and intriguing maps. Before you know it, you´ll have a working, awesome game to stump your friends with (and some nifty coding skills, too!). You can follow this book using a Raspberry Pi or a Microsoft Windows PC, and the 3D graphics and sound effects you need are provided as a download.
So you need to set up a SAN? Here´s how to design, implement, and manage one! Whether you´re a complete novice or you already have a bit of knowledge about storage area networks, this book is almost guaranteed to make your job easier. From the basics for beginners to advanced features like snapshot copies, storage virtualization, and heading off problems before they happen, here´s what you need to do the job with confidence! * Getting started - understand what SANs are, whether you need one, and what you need to build one * Design basics - learn to use loops, switches, and the fabric layer, and design your SAN for peak performance * No surprises - create a disaster-recovery plan with the appropriate guidelines and choose a remote site and data replication method * SANs united - see how to connect or extend SANs and how compression can reduce costs * Wait, back up - compare tape, disk, network, and SAN backup methods to choose the solution you need * What if it breaks? - follow great troubleshooting tips to help you find and fix a problem * De-dupe, de-dupe - find out how data de-duplication makes sense for backup, replication, and retention * It´s virtual - explore different types of virtualization and what they offer Open the book and find: * What RAID is and why it´s important * Issues to consider when planning your SAN * A translation of all those pesky acronyms * What to do when your server gets the hiccups * How to use CDP and CDR * What you should beware of with storage virtualization * Hardware- and software-based copy solutions * SAN best practices