On Fri, Feb 14, 2014 at 8:31 PM, Nick Timkovich <prometheus...@gmail.com> wrote:
> OK, now the trick; adding `data = None` inside the generator works, but in
> my actual code I wrap my generator inside of `enumerate()`, which seems to
> obviate the "fix".  Can I get it to play nice or am I forced to count
> manually. Is that a feature?

Yeah, looks like enumerate also doesn't release its reference to the
previous object until after it gets the next one.  You'll just have to
make do without.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to