;ll add those to the list of built-in modules.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of orip
Sent: Sunday, November 16, 2008 11:53 PM
To: users@lists.ironpython.com
Subject: Re: [IronPython] getframe and __file__
That certainly fits my use case.
It would b
That certainly fits my use case.
It would be cool to check for an "IronPython Extensions" module and
use it if available.
On Nov 16, 7:39 pm, Michael Foord <[EMAIL PROTECTED]> wrote:
> Hello guys,
>
> Around 90% of the uses for sys._getframe that I've seen are to find out
> the calling module, by
Hello guys,
Around 90% of the uses for sys._getframe that I've seen are to find out
the calling module, by accessing __file__ in the calling frame globals.
I just wondered if it would be any cheaper to just track this
information and fake out the frame objects so that this use case is met?
T