Bugsink Blog: Python
Looking for everything? Visit the main blog overview.
Simple Import, Strange Error
Some Python behaviors are unexpected if you've never seen them. Others still seem unexpected once you’ve spent an hour
debugging them…
March 18, 2025 by Klaas van Schelven
Raise Understanding
Here's a typical debugging scenario: you tweak the code, restart everything, but still – no difference.
After 3 changes and some head-scratching…
March 17, 2025 by Klaas van Schelven
raise ... from None
In Python, exceptions can be chained to provide context about what went wrong and why. This is achieved through the
"raise ... from" construct…
December 27, 2024 by Klaas van Schelven
Logs with full Stacktrace Context
There are times when you want to log "something interesting" that isn't quite an error, but still something
that's interesting enough to get the same rich debugging context. This article shows how.
December 10, 2024 by Klaas van Schelven
