From: Ian Jackson Date: Sat, 1 Apr 2017 23:42:46 +0000 (+0100) Subject: absurd X-Git-Tag: hippotat/1.0.0~55^2~145 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=4ee8a69800373b73f6b1a573c333511af8ce26f7;ds=sidebyside absurd --- diff --git a/test.py b/test.py new file mode 100755 index 0000000..e1a1568 --- /dev/null +++ b/test.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +def hi(th, x): + print('hi %s %s' % (th, x)) + +def rt(): + global g + g = { } + while len(g) < 3: + newthing = object() + newfunc = lambda x: hi(newthing, x) + g[newthing] = newfunc + +rt() +print(repr(g)) +for v in g.values(): + v(24)