BarrySearle wrote:

> # Is this valid

yes.

> (or is excp local to try/except)?

no.  try/except doesn't introduce a new scope.

> try:
>    try:
>       doSomething1
>       excp = 0
>    except:
>       excp = 1
>    #endTry
>    if (_excp_): doSomething1 # is excp defined here?

yes (but _excp_ isn't defined, so you need to change that if-statement)

>    excp = 0
> except:
>    excp = 1
> #endTry
> if (excp): doSomething2 # is excp defined here?

yes.

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to