Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

ISTM that a discussion on python-dev would be of value here.  Iterators are a 
protocol, not a class; hence, the effort to make them all picklable is 
potentially endless.  The effort would also always be incomplete because some 
iterators are difficult or inconvenient to pickle (esp. those with inputs from 
local or temporary resources).

Experience with SQL hasn't shown a need to save partially consumed cursors and 
my experience with iterators indicates that the need for pickling would be rare 
or that is would distract from better solutions (perhaps message based or 
somesuch).

The size of this patch is a hint that the idea is not a minor change and that 
it would add a maintenance burden.  What is far from clear is whether it would 
have value for any real-world problems.

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14288>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to