A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/026830.html below:

[Python-Dev] The iterator story

[Python-Dev] The iterator story [Python-Dev] The iterator storyNeil Schemenauer nas@python.ca
Fri, 19 Jul 2002 16:22:26 -0700
Neal Norwitz wrote:
> In what context?  Were you iterating over a file or something else?
> I'm wondering if this is a problem, perhaps pychecker could generate
> a warning?

I was switching between implementing something as a generator and
returning a list.  I was curious why I was getting different behavior
until I realized I was iterating over the result twice.  I don't
think pychecker could warn about such a bug.

  Neil




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4