@@ -303,18 +303,20 @@ def erroneous(ec):
303303# return 1 # catch if tags match
304304# return 0 # don't catch, pass on
305305#
306- # from itertools import product
307306# _ = None
308- # # @setescape point attributes
309- # ps = ((None, False), (None, True),
307+ # # we're essentially projecting bool**4 into two dimensions.
308+ # ps = ((None, False), (None, True), # @setescape points
310309# (set(("tag",)), False), (set(("tag",)), True))
311- # # escape instance attributes
312- # es = (escape(_, None, False), escape(_, None, True),
310+ # es = (escape(_, None, False), escape(_, None, True), # escape instances
313311# escape(_, "tag", False), escape(_, "tag", True))
314- # table = [check(t, c, e) for (t, c), e in product(ps, es)]
315- # import numpy as np
316- # a = np.reshape(table, (4, 4)) # row = p, col = e
317- # print(a)
312+ ## # the other reasonable projection:
313+ ## ps = ((None, False), (set(("tag",)), False),
314+ ## (None, True), (set(("tag",)), True))
315+ ## es = (escape(_, None, False), escape(_, "tag", False),
316+ ## escape(_, None, True), escape(_, "tag", True))
317+ # table = [[check(t, c, e) for e in es] for (t, c) in ps] # col = e, row = p
318+ # for row in table:
319+ # print(row)
318320# catching_truth_table()
319321
320322 print ("All tests PASSED" )
0 commit comments