Re: [Python-Dev] py3k buffered I/O - flush() required between read/write?

2011-05-12 Thread Antoine Pitrou
Hello, On Thu, 12 May 2011 03:35:16 +0100 Genstein wrote: > > The following is the smallest code I can conjure which demonstrates the > issue I'm seeing: This is a bug indeed. Can you report it on http://bugs.python.org ? Thanks a lot for finding this, Antoine. ___

Re: [Python-Dev] py3k buffered I/O - flush() required between read/write?

2011-05-12 Thread Genstein
On 12/05/2011 11:47, Antoine Pitrou wrote: This is a bug indeed. Can you report it on http://bugs.python.org ? Thanks a lot for finding this, Antoine. Duly reported as http://bugs.python.org/issue12062. I'm glad it wasn't me being dumb(er than usual). It took a while to pin down to a small

[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): >> sel

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 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() > [...]

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: > >> http://do