--- /dev/null
+#!/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)