Paste: this

Author: _
Mode: python
Date: Fri, 27 Nov 2009 14:14:34
Plain Text |
fns = []
for i in xrange(8):
    def t():
        print i
    fns.append(t)

[f() for f in fns]

New Annotation

Summary:
Author:
Mode:
Body: