[Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablity (original) (raw)

Benjamin Peterson benjamin at python.org
Thu May 2 21:48:14 CEST 2013


2013/5/2 Ethan Furman <ethan at stoneleaf.us>:

In order for the Enum convenience function to be pickleable, we have this line of code in the metaclass:

enumclass.module = sys.getframe(1).fglobals['name'] This works fine for Cpython, but what about the others?

Regardless of that, perhaps we should come up with better ways to do this.

-- Regards, Benjamin



More information about the Python-Dev mailing list