Lines Matching refs:co
97 def dump(co): argument
101 print "%s: %s" % (attr, getattr(co, "co_" + attr))
102 print "consts:", tuple(consts(co.co_consts))
110 co = _testcapi.code_newempty("filename", "funcname", 15)
111 self.assertEqual(co.co_filename, "filename")
112 self.assertEqual(co.co_name, "funcname")
113 self.assertEqual(co.co_firstlineno, 15)
138 co = compile('res = "str_value"', '?', 'exec')
139 v = self.find_const(co.co_consts, 'str_value')
144 co = compile('res = ("str_value",)', '?', 'exec')
145 v = self.find_const(co.co_consts, ('str_value',))
156 co = compile(r'res = "str\0value!"', '?', 'exec')
157 v = self.find_const(co.co_consts, 'str\0value!')