Intuitive Python
by David Muller
Published in
2 min readSep 23, 2021
--
Table of Contents
1. Diving into Life with Python
- Setting Up Your Environment and Using This Book’s Companion Docker Image
- Using Python’s Interactive Console to Run Programs
- Try Out Different Versions of Python with Docker
- Investigating with pdb Breakpoints
- Detecting Problems Early
- Formatting and Styling Your Code Consistently
- Wrapping Up
2. Shifting Up with the Standard Library
- Using the collections Module for Concise Code
- Creating Temporary Workspaces with tempfile
- Calling Other Programs with subprocess
- Using Python’s Built-In Database with sqlite3
- Profiling Python Code with cProfile
- Wrapping Up
3. Ramping Up with Concurrent Code
- Approach Concurrency with Caution
- Meet Threads and Processes
- Using concurrent.futures to Run Code Concurrently
- Choosing ThreadPoolExecutor or ProcessPoolExecutor
- Staying Safe When Writing Concurrent Code
- Building with an Alternate Model: asyncio
- Wrapping Up
- Serializing Python Objects with the pickle Module
- Handling Datetimes with Timezones
- Getting Caught with Sticky Default Arguments
- Wrapping Up
5. Standing Guard When Python Breaks Free
- Installing Third-Party Packages Securely with pip
- Maintaining Privacy in a Public World
- Keeping Your Source Organized
- Dodging Wildcard Variable Shadowing
- Wrapping Up
Copyright © 2021, The Pragmatic Bookshelf.
Intuitive Python by David Muller can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.