On 2009-03-25, Marco Nawijn wrote:
> Hello,
>
> In short I would like to know if somebody knows if it is possible to
> re-execute a statement that raised an exception? I will explain the
> reason by providing a small introduction on why this might be nice in
> my case
> and some example code.
>
>
Also, instead of caching exceptions you can do lazy lookups kinda like
this:
-
# a.py
class A:
pass
-
# b.py
class B:
Marco Nawijn wrote:
In short I would like to know if somebody knows if it is possible to
re-execute a statement that raised an exception?
In short, no.
As an example, look at the following statement
aPoint = gp_Pnt(1.0, 0.0, 0.0) # Oops, this will raise a NameError, since
On Mar 25, 10:23 am, Marco Nawijn wrote:
> Hello,
>
> In short I would like to know if somebody knows if it is possible to
> re-execute a statement that raised an exception? I will explain the
> reason by providing a small introduction on why this might be nice in
> my case
> and some example code
On 25 Mrz., 15:23, Marco Nawijn wrote:
> Hello,
>
> In short I would like to know if somebody knows if it is possible to
> re-execute a statement that raised an exception? I will explain the
> reason by providing a small introduction on why this might be nice in
> my case
> and some example code.