November 2022
Beginner to intermediate
752 pages
19h 19m
English
Mistakes in code are inevitable. The bugs you’ll encounter can range from simple typos to malformed logic, from misunderstood usage to those strange errors that originate from deeper in the tech stack. As Lubarsky’s Law of Cybernetic Entomology observes, “There is always one more bug.” When things go horribly wrong in your code, you’re going to need the tools to find and fix the problem. In this chapter, you’ll learn all about those tools.
I’ll begin by covering three features of the Python language that you can add to your code to help you debug it later: warnings, logging, and assertions. These are improvements ...
Read now
Unlock full access