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/2004-September/049060.html below:

[Python-Dev] Re: A cute new way to get an infinite loop

[Python-Dev] Re: A cute new way to get an infinite loop [Python-Dev] Re: A cute new way to get an infinite loopDavid Goodger goodger at python.org
Thu Sep 23 18:32:38 CEST 2004
[Tim Peters]
> >>> x = [1]
> >>> x.extend(-y for y in x)

Not quite infinite, since eventually it will raise a MemoryError.
So "while 1:" still rules that roost.  ;-)

-- 
David Goodger <http://python.net/~goodger>

More information about the Python-Dev mailing list

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