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/2011-May/111363.html below:

[Python-Dev] Could these restrictions be removed?

[Python-Dev] Could these restrictions be removed? [Python-Dev] Could these restrictions be removed?Walter Dörwald walter at livinglogic.de
Thu May 12 18:58:12 CEST 2011
On 12.05.11 18:53, Walter Dörwald wrote:

> On 12.05.11 18:33, skip at pobox.com wrote:
> 
>> A friend at work who is new to Python wondered why this didn't work with
>> pickle:
>>
>>     class Outer:
>>
>>         Class Inner:
>>
>>             ...
>>
>>         def __init__(self):
>>             self.i = Outer.Inner()
>>
>> I explained:
>>
>>> http://docs.python.org/library/pickle.html#what-can-be-pickled-and-unpickled 
>>>
>>>
>>>  From that:
>>>
>>>     # functions defined at the top level of a module
>>>     # built-in functions defined at the top level of a module
>>>     # classes that are defined at the top level of a module
>>
>> I've never questions this, but I wonder, is this a fundamental restriction
>> or could it be overcome with a modest amount of work?
> 
> This is related to http://bugs.python.org/issue633930

See also the thread started at:

   http://mail.python.org/pipermail/python-dev/2005-March/052454.html

Servus,
   Walter
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