1.1 --- a/test.py Mon Aug 25 02:04:10 2008 +0200
1.2 +++ b/test.py Wed Aug 27 00:43:33 2008 +0200
1.3 @@ -21,6 +21,12 @@
1.4 for i, x in enumerate(code):
1.5 print i, x
1.6
1.7 +def show_table_usage(raw_table, slice_size=100):
1.8 + for x in xrange(0, len(raw_table), slice_size):
1.9 + table_slice = raw_table[x:x+slice_size]
1.10 + print "%6d" % (len(table_slice) - table_slice.count(None)), \
1.11 + "".join(entry and "#" or "_" for entry in table_slice)
1.12 +
1.13 def machine(importer):
1.14 rc = raw(importer.code)
1.15 rm = rsvp.RSVPMachine(rc)