A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-May/125884.html below:

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

[Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablityfwierzbicki at gmail.com fwierzbicki at gmail.com
Thu May 2 22:18:18 CEST 2013
On Thu, May 2, 2013 at 12:07 PM, Ethan Furman <ethan at 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4