chiark / gitweb /
absurd
[hippotat] / test.py
CommitLineData
4ee8a698
IJ
1#!/usr/bin/python3
2
3def hi(th, x):
4 print('hi %s %s' % (th, x))
5
6def rt():
7 global g
8 g = { }
9 while len(g) < 3:
10 newthing = object()
11 newfunc = lambda x: hi(newthing, x)
12 g[newthing] = newfunc
13
14rt()
15print(repr(g))
16for v in g.values():
17 v(24)