How Best to Coerce Python Objects to Integers?

Ethan Furman ethan at
Tue Jan 3 17:42:52 EST 2017

On 01/03/2017 01:41 PM, breamoreboy at wrote:

> Hi all, I'd suggest that this [1] is not one of the greatest articles
>  ever written about Python exception handling.  Other opinions are welcome.

Aside from calling "except Exception" a "naked except" I think it's decent.  He walks through the problem, explains the rationale, and only has one line of code guarded by the except clause.



More information about the Python-list mailing list