[SciPy-user] RE: my first compile try fails

eric eric at scipy.org
Mon Nov 19 14:17:44 EST 2001


Hey Rob,

I haven't tried multiple lines yet.  I think it could be done if you
separated the expressions by a semi-colon.  Something like:

expr = \
"""
expr1;
expr2;
expr3;
"""
compiled_exec(expr,locals())

I haven't tried this though.

You can also just call them separately, and the overhead should be minimal
compared to the FDTD updates.

compiled_exec(expr1,locals())
compiled_exec(expr2,locals())
compiled_exec(expr3,locals())

Again, let me know if you want the corrections I've made to handle the error
you found.  I'll have to send it as a zip or tgz as the CVS version is two
different from 0.1 to work.

eric

----- Original Message -----
From: "Lytle, Robert TQO" <rlytle at tqs.com>
To: <scipy-user at scipy.net>
Sent: Monday, November 19, 2001 3:08 PM
Subject: [SciPy-user] RE: my first compile try fails


> Thanks Eric,
>
> Yes that is some FDTD code.  Question:  as I understand it from the docs,
I
> can only compile one line of code.  Or am I reading that wrong from the
> docs?  Would be nice to compile the entire FDTD field update part of the
> program by making it one giant string.
>
> Rob.
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>





More information about the SciPy-User mailing list