[Python-Dev] Could these restrictions be removed? (original) (raw)
Walter Dörwald walter at livinglogic.de
Thu May 12 18:53:55 CEST 2011
- Previous message: [Python-Dev] Could these restrictions be removed?
- Next message: [Python-Dev] Could these restrictions be removed?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
Servus, Walter
- Previous message: [Python-Dev] Could these restrictions be removed?
- Next message: [Python-Dev] Could these restrictions be removed?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]