[IronPython] sympy on IP 2.6B2

Jeff Hardy jdhardy at gmail.com
Sun Jul 26 18:24:37 CEST 2009


On Sun, Jul 26, 2009 at 10:13 AM, Jeffrey
Sax<jeffrey at extremeoptimization.com> wrote:
>
> Still, given the performance degradation, it seems odd you have to turn
> frames on just to import a module regardless of whether you actually need
> the frames functionality.

For that reason, modules should have guards similar to

if not hasattr(sys, '_getframe'):
    ...

around any code that uses frames, and disable that functionality if
they're not available. Both Jython and IronPython have the same
problem with frames causing a large performance hit, so it helps
portability.

- Jeff



More information about the Ironpython-users mailing list