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/2002-November/029874.html below:

[Python-Dev] metaclass insanity

[Python-Dev] metaclass insanity [Python-Dev] metaclass insanityPatrick K. O'Brien pobrien@orbtech.com
Mon, 4 Nov 2002 12:36:59 -0600
On Monday 04 November 2002 11:10 am, Michael Hudson wrote:
>
> What happens for nested classes?
>
> In
>
> class X:
>     class Y:
>         pass
>
> are X.Y instances picklable without extra fiddling?

Picklable functions and classes must be defined in the top level of a 
module. Nested classes, and instances thereof, cannot be pickled at all.

-- 
Patrick K. O'Brien
Orbtech      http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------




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