3 ms·
Renaming the variable doesn’t fix the code. It still prints “HTTP Not Found” for every value of `status_code`.
by pansa2 6y ago
Renaming the variable doesn’t fix the code. It still prints “HTTP Not Found” for every value of `status_code`.
- bondarchuk 6y agoright.. D'oh I gather that the proposed solution is to use something like enums? Or not do this at all?
- masklinn 6y agoYes, or not import the constants from their module aka import foo not from foo import BAR, BAZ, QUX