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/026501.html below:

[Python-Dev] Single- vs. Multi-pass iterability

[Python-Dev] Single- vs. Multi-pass iterability [Python-Dev] Single- vs. Multi-pass iterabilityDelaney, Timothy tdelaney@avaya.com
Mon, 15 Jul 2002 08:51:36 +1000
> From: Delaney, Timothy [mailto:tdelaney@avaya.com]
> 
> if iter(x) == iter(x):
>     # this is *definitely* a single-pass iterable

Of course, that should have been

if iter(x) is iter(x):
     # this is *definitely* a single-pass iterable

Too much damned Java at the moment :(

Tim Delaney




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