buggy python interpretter or am I missing something here?

Ethan Furman ethan at stoneleaf.us
Mon Jan 27 02:08:06 EST 2014


On 01/26/2014 10:42 PM, me wrote:
>
> My point of contention isn't so much about what specific syntax I should
> be using as much as it is about being allowed to use a syntax that gives
> erroneous results without triggering a syntax violation.  If the bare
> except: clause is syntactically legal then it should yield deterministic
> results based on a well defined language specification, right?  It's
> looking very much like "except:" is undefined behaviour.

There is nothing undefined about it.  `except:` catches everything.  Occasionally there is a good reason to do it that 
way, but under typical circumstances you tell 'except' which exceptions you are prepared to deal with.

--
~Ethan~



More information about the Python-list mailing list