Re: [IronPython] getframe and __file__

2008-11-17 Thread Dino Viehland
;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

Re: [IronPython] getframe and __file__

2008-11-16 Thread orip
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

[IronPython] getframe and __file__

2008-11-16 Thread Michael Foord
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