[Python-Dev] A cute new way to get an infinite loop (original) (raw)
Jeremy Hylton jhylton at gmail.com
Thu Sep 23 15:01:17 CEST 2004
- Previous message: [Python-Dev] A cute new way to get an infinite loop
- Next message: [Python-Dev] A cute new way to get an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 23 Sep 2004 04:26:58 -0400, Tim Peters <tim.peters at gmail.com> wrote:
>>> x = [1] >>> x.extend(-y for y in x)
It is perhaps surprising that something lazy can work so hard.
Jeremy
- Previous message: [Python-Dev] A cute new way to get an infinite loop
- Next message: [Python-Dev] A cute new way to get an infinite loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]