How Best to Coerce Python Objects to Integers?

Chris Angelico rosuav at
Tue Jan 3 17:47:17 EST 2017

On Wed, Jan 4, 2017 at 9:42 AM, Ethan Furman <ethan at> wrote:
> Aside from calling "except Exception" a "naked except"

If you read the comments, you'll see that he originally had an actual
bare except clause, but then improved the code somewhat in response to
a recommendation that SystemExit etc not be caught.


More information about the Python-list mailing list