before reorg debug opts again
[hippotat] / test.py
CommitLineData
4ee8a698
IJ
1#!/usr/bin/python3
2
697be73a
IJ
3from functools import partial
4
4ee8a698
IJ
5def hi(th, x):
6 print('hi %s %s' % (th, x))
7
8def rt():
9 global g
10 g = { }
11 while len(g) < 3:
12 newthing = object()
697be73a 13 newfunc = partial(hi, newthing)
4ee8a698
IJ
14 g[newthing] = newfunc
15
16rt()
17print(repr(g))
18for v in g.values():
19 v(24)