[IronPython] sympy on IP 2.6B2
Michael Foord
fuzzyman at voidspace.org.uk
Sun Jul 26 18:26:48 CEST 2009
Jeff Hardy wrote:
> 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.
>
>
Doesn't Jython have frames now?
Anyway - yes code *should* have hasattr guards, but unfortunately a lot
of it doesn't, which sucks.
Michael
> - Jeff
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list