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

Tim Peters tim.peters at gmail.com
Thu Sep 23 10:26:58 CEST 2004


>>> x = [1]
>>> x.extend(-y for y in x)


More information about the Python-Dev mailing list