
May 2, 2013
8:18 p.m.
On Thu, May 2, 2013 at 12:07 PM, Ethan Furman <ethan@stoneleaf.us> wrote:
In order for the Enum convenience function to be pickleable, we have this line of code in the metaclass:
enum_class.__module__ = sys._getframe(1).f_globals['__name__']
This works fine for Cpython, but what about the others? This should work for Jython, but I can't say I like it. I believe IronPython has a sort of speedup mode that disallows the use of _getframe, and I'd like to add this to Jython someday.
-Frank