Book description
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.
Publisher resources
Table of contents
- Title Page
- Copyright
- Dedication
- About the Author
- Foreword
- Acknowledgments
- Introduction
-
Part I: THE PYTHON ENVIRONMENT
- Chapter 1: The Python Philosophy
- Chapter 2: Your Workbench
- Chapter 3: Syntax Crash Course
- Chapter 4: Project Structure and Imports
-
Part II: ESSENTIAL STRUCTURES
- Chapter 5: Variables and Types
- Chapter 6: Functions and Lambdas
- Chapter 7: Objects and Classes
- Chapter 8: Errors and Exceptions
-
Part III: 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 IV: ADVANCED CONCEPTS
- Chapter 13: Inheritance and Mixins
- Chapter 14: Metaclasses and ABCs
- Chapter 15: Introspection and Generics
- Chapter 16: Asynchrony and Concurrency
- Chapter 17: Threading and Parallelism
-
Part V: BEYOND THE CODE
- Chapter 18: Packaging and Distribution
- Chapter 19: Debugging and Logging
-
Chapter 20: Testing and Profiling
- What About TDD?
- Test Frameworks
- The Example Project
- Testing and Project Structure
- Testing Basics
- Test Fixtures
- Flaky Tests and Conditionally Skipping Tests
-
Advanced Fixtures: Mocking and Parametrizing
- Continuing the Example: Representing a Typo
- Parametrizing
- Indirect Parametrization of Fixtures
- Mocking Inputs with Monkeypatch
- Marking
- Capturing from Standard Streams
- GUI Testing
- Continuing the Example: Connecting the API to Typo
- Autouse Fixtures
- Mixed Parametrization
- Fuzzing
- Wrapping Up the Example
- Code Coverage
- Automating Testing with tox
- Benchmarking and Profiling
- Wrapping Up
- Chapter 21: The Parting of the Ways
- Appendix A: Special Attributes and Methods
- Appendix B: Python Debugger (pdb) Commands
- Appendix : Glossary
- Index
Product information
- Title: Dead Simple Python
- Author(s):
- Release date: November 2022
- Publisher(s): No Starch Press
- ISBN: 9781718500921
You might also like
book
Head First Python, 2nd Edition
Want to learn the Python language without slogging your way through how-to manuals? With Head First …
book
Head First Python, 3rd Edition
What will you learn from this book? Want to learn the Python language without slogging your …
book
Automate the Boring Stuff with Python, 2nd Edition
If you’ve ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how …
book
Fluent Python, 2nd Edition
Don't waste time bending Python to fit patterns you've learned in other languages. Python's simplicity lets …