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/125901.html below:

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

[Python-Dev] PyPy, Jython, & IronPython: Enum convenience function and pickleablityAntoine Pitrou solipsis at pitrou.net
Thu May 2 23:26:30 CEST 2013
On Thu, 2 May 2013 14:16:34 -0700
Barry Warsaw <barry at python.org> wrote:
> On May 02, 2013, at 10:57 PM, Antoine Pitrou wrote:
> 
> >On Thu, 2 May 2013 13:48:24 -0700
> >> The problem with (5) is this: you use some library that exports an
> >> enumeration, and you want to use pickling. Now you depend on the way the
> >> library implemented - if it used the convenience API, you can't pickle. If
> >> it used the class API, you can.
> >
> >A good reason to ditch the function-based syntax.
> 
> Why?  Not everything is picklable.  Oh well.

Then why insist on the _getframe hack? You are losing me: are you
bothered by picklability or not? ;-)

If you are not, then fine, let's just make the function-based version
*documentedly* unpicklable, and move along.

Regards

Antoine.


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