[Python-Dev] Could these restrictions be removed?

2011-05-12 Thread Skip Montanaro
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

Re: [Python-Dev] Could these restrictions be removed?

2011-05-12 Thread Walter Dörwald
On 12.05.11 18:53, Walter Dörwald wrote: On 12.05.11 18:33, s...@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

Re: [Python-Dev] Could these restrictions be removed?

2011-05-12 Thread Antoine Pitrou
On Thu, 12 May 2011 11:33:37 -0500 (CDT) Skip Montanaro s...@montanaro.dyndns.org 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 =

Re: [Python-Dev] Could these restrictions be removed?

2011-05-12 Thread Walter Dörwald
On 12.05.11 18:33, s...@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: