Post

I'd father have à more général operator that catches AttributeError, it's more useful and closer to duck typing. This way you don't have to care if it's None, you have to care if it has the right API.

0 reposts0 likes

Same thing with KeyError and IndexError for ?[, and a general all exception catch with ??. We don't have to replicate what other languages do exactly, This Is Python, we can do better and more useful.