How Best to Coerce Python Objects to Integers?

Chris Angelico rosuav at gmail.com
Tue Jan 3 16:47:16 EST 2017


On Wed, Jan 4, 2017 at 9:42 AM, Ethan Furman <ethan at stoneleaf.us> 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.

ChrisA



More information about the Python-list mailing list