The complete core language for existing programmers.
Dead Simple Python is a thorough introduction to every feature of the Python language for programmers who are impatient to write production code. Instead of revisiting elementary computer science topics, you’ll dive deep into idiomatic Python patterns so you can write professional Python programs in no time.
After speeding through Python’s basic syntax and setting up a complete programming environment, you’ll learn to work with Python’s dynamic data typing, its support for both functional and object-oriented programming techniques, special features like generator expressions, and advanced topics like concurrency. You’ll also learn how to package, distribute, debug, and test your Python project.
Master how to:Make Python's dynamic typing work for you to produce cleaner, more adaptive code.
Harness advanced iteration techniques to structure and process your data.
Design classes and functions that work without unwanted surprises or arbitrary constraints.
Use multiple inheritance and introspection to write classes that work intuitively.
Improve your code's responsiveness and performance with asynchrony, concurrency, and parallelism.
Structure your Python project for production-grade testing and distribution
The most pedantically pythonic primer ever printed, Dead Simple Python will take you from working with the absolute basics to coding applications worthy of publication.
ISBN-13: 9781718500921
Media Type: Paperback
Publisher: No Starch Press
Publication Date: 11-22-2022
Pages: 752
Product Dimensions: 7.00(w) x 9.20(h) x 1.90(d)
Jason C. McDonald is a software developer, speaker, and author of both fiction and non-fiction. By day, he works as a Principal Consultant at Sparq, specializing in Python software engineering. By night, he is the founder of MousePaw Media, an open source software organization where he trains software development interns. You can usually find him haunting his local coffee shops.
Table of Contents
Introduction
Part 1: The Python Environment
Chapter 1: The Python Philosophy
Chapter 2: Your Workbench
Chapter 3: Syntax Crash Course
Chapter 4: Project Structure and Imports
Part 2: Essential Structures
Chapter 5: Variables and Types
Chapter 6: Functions and Lambdas
Chapter 7: Objects and Classes
Chapter 8: Errors and Exceptions
Part 3: Data and Flow
Chapter 9: Collections and Iteration
Chapter 10: Generators and Comprehensions
Chapter 11: Text IO and Context Managers
Chapter 12: Binary and Serialization
Part 4: Advanced Concepts
Chapter 13: Inheritance and Mixins
Chapter 14: Metaclasses and ABCs
Chapter 15: Inspection and Generics
Chapter 16: Asynchrony and Concurrency
Chapter 17: Threading and Parallelism
Part 5: Beyond the Code
Chapter 18: Packaging and Distribution
Chapter 19: Debugging and Analysis
Chapter 20: Testing and Profiling
Chapter 21: The Parting of the Ways
Appendix A: Special Attributes and Methods
Appendix B: Python Debugger (pdb) Commands
Glossary
Show More