Jeff Hardy wrote:
On Sun, Jul 26, 2009 at 10:13 AM, Jeffrey
Sax<jeff...@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@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com