Dead Simple Python Cover

Dead Simple Python

Idiomatic Python for Impatient Programmers
by Jason C. McDonald
October 2022, 592 pp.
ISBN-13: 
9781718500921
Use coupon code PREORDER to get 25% off!

 

Download Chapter 5: VARIABLES AND TYPES

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.

Author Bio 

Jason C. McDonald is a software developer, speaker, and author of both fiction and non-fiction. By day, he works as a Lead Code Whisperer at Corgibytes, renovating legacy code. By night, he is also 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

Chapters in red are included in the Early Access PDF.