Hello all,

Occasionally I have code that would like to know what module (scope) 
some code is being called from. In CPython I would do :

calling_scope = sys._getframe(1).f_globals['__name__']

How can I do this in IronPython ? (Ugly hacks accepted.)

Thanks

Michael
http://www.voidspace.org.uk/ironpython/
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to