[Python-Dev] A cute new way to get an infinite loop (original) (raw)
George Yoshida python at dynkin.com
Sat Sep 25 05:33:39 CEST 2004
- Previous message: [Python-Dev] Re: 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 ]
Tim Peters wrote:
x = [1] x.extend(-y for y in x)
It does not always go into an infinite loop. I was bitten by this:
x = [] x.extend(-y for y in x) Segmentation fault
George
- Previous message: [Python-Dev] Re: 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 ]