Re: [Python-Dev] making python's c iterators picklable (http://bugs.python.org/issue14288)

2012-03-13 Thread Christian Tismer
On 3/13/12 4:05 PM, Antoine Pitrou wrote: On Tue, 13 Mar 2012 22:53:42 + Kristján Valur Jónsson wrote: http://bugs.python.org/issue14288 Raymond suggested that this patch should be discussed here, so here goes: Sounds good on the principle. Of course, the patch needs to be reviewed. I a

Re: [Python-Dev] making python's c iterators picklable (http://bugs.python.org/issue14288)

2012-03-13 Thread Antoine Pitrou
On Tue, 13 Mar 2012 22:53:42 + Kristján Valur Jónsson wrote: > http://bugs.python.org/issue14288 > > Raymond suggested that this patch should be discussed here, so here goes: Sounds good on the principle. Of course, the patch needs to be reviewed. cheers Antoine.

Re: [Python-Dev] making python's c iterators picklable (http://bugs.python.org/issue14288)

2012-03-13 Thread Jack Diederich
2012/3/13 Kristján Valur Jónsson : > http://bugs.python.org/issue14288 > In my opinion, any objects that have simple and obvious pickle semantics > should be picklable.  Iterators are just regular objects with some state. > They are not file pointers or sockets or database cursors.  And again, I >

[Python-Dev] making python's c iterators picklable (http://bugs.python.org/issue14288)

2012-03-13 Thread Kristján Valur Jónsson
http://bugs.python.org/issue14288 Raymond suggested that this patch should be discussed here, so here goes: How this came about: There are frameworks, such as the Nagare web framework, (http://www.nagare.org/) that rely on suspending execution at some point and resuming it again. Nagare does t