Re: Jim Fulton : Extensible compound statements -- new exec flavor

Jim Fulton (jfulton@disqvarsa.er.usgs.GOV)
Wed, 1 Feb 1995 14:28:23 GMT

A minor note:

>>>>> "Jim" == Jim Fulton <jfulton@disqvarsa.er.usgs.GOV> writes:
In article <JFULTON.95Feb1083432@disqvarsa.er.usgs.GOV>
jfulton@disqvarsa.er.usgs.GOV (Jim Fulton ) writes:

...stuff deleted

> def Code(suite,global,local,else=None):

> Transaction.Begin()
> try:
> exec suite in global in local
> Transaction.End()
> except Transaction.Abort:

This should be:
except Transaction.AbortException:

> raise sys.exc_type,sys.exc_value
> except:
> Transaction.Abort()
> raise sys.exc_type,sys.exc_value

--
-- Jim Fulton      jfulton@mailqvarsa.er.usgs.gov    (703) 648-5622
                   U.S. Geological Survey, Reston VA  22092 
This message is being posted to obtain or provide technical information
relating to my duties at the U.S. Geological Survey.