Searched refs:func_code (Results 1 - 25 of 61) sorted by relevance

123

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
H A Dtest_dis.py21 """%(_f.func_code.co_firstlineno + 1,
22 _f.func_code.co_firstlineno + 2)
45 """%(bug708901.func_code.co_firstlineno + 1,
46 bug708901.func_code.co_firstlineno + 2,
47 bug708901.func_code.co_firstlineno + 3)
75 """%(bug1333982.func_code.co_firstlineno + 1,
76 bug1333982.func_code.co_firstlineno + 2,
77 bug1333982.func_code.co_firstlineno + 3)
H A Dtest_funcattrs.py60 test.func_code = self.b.func_code
117 self.assertEqual(type(func.func_code), types.CodeType)
120 d.func_code = c.func_code
121 self.assertEqual(c.func_code, d.func_code)
125 b.func_code = c.func_code
129 self.fail("func_code wit
[all...]
H A Dtest_new.py91 new.function(f.func_code, {}, "blah")
92 g2 = new.function(g.func_code, {}, "blah", (2,), g.func_closure)
94 g3 = new.function(g.func_code, {}, "blah", None, g.func_closure)
97 self.assertRaises(exc, new.function, func.func_code, {}, "", None, closure)
110 c = f.func_code
H A Dtest_py3kwarn.py134 self.assertWarning(f.func_code < g.func_code, w, expected)
136 self.assertWarning(f.func_code <= g.func_code, w, expected)
138 self.assertWarning(f.func_code >= g.func_code, w, expected)
140 self.assertWarning(f.func_code > g.func_code, w, expected)
H A Dtest_compile.py299 for variable in self.test_32_63_bit_values.func_code.co_consts:
387 self.assertNotEqual(id(f1.func_code), id(f2.func_code))
477 self.assertIn("_A__mangled", A.f.func_code.co_varnames)
478 self.assertIn("__not_mangled__", A.f.func_code.co_varnames)
479 self.assertIn("_A__mangled_mod", A.f.func_code.co_varnames)
480 self.assertIn("__package__", A.f.func_code.co_varnames)
H A Dtest_hotshot.py92 f_lineno = f.func_code.co_firstlineno
93 g_lineno = g.func_code.co_firstlineno
H A Dtest_grammar.py153 self.assertEqual(f2.func_code.co_varnames, ('one_argument',))
154 self.assertEqual(f3.func_code.co_varnames, ('two', 'arguments'))
156 self.assertEqual(f4.func_code.co_varnames,
159 self.assertEqual(f5.func_code.co_varnames,
162 self.assertEqual(f4.func_code.co_varnames,
164 self.assertEqual(f5.func_code.co_varnames,
201 self.assertEqual(v3.func_code.co_varnames, ('a', '(b, c)', 'rest', 'b', 'c'))
203 self.assertEqual(v3.func_code.co_varnames, ('a', '.1', 'rest', 'b', 'c'))
H A Dtest_sys_settrace.py272 self.compare_events(func.func_code.co_firstlineno,
282 self.compare_events(func.func_code.co_firstlineno,
441 frame.f_lineno == f.func_code.co_firstlineno + 2):
472 if not self.done and frame.f_code == self.function.func_code:
782 func_code = code variable in class:.test_jump_to_firstlineno.fake_function
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dtest_dis.py21 """%(_f.func_code.co_firstlineno + 1,
22 _f.func_code.co_firstlineno + 2)
45 """%(bug708901.func_code.co_firstlineno + 1,
46 bug708901.func_code.co_firstlineno + 2,
47 bug708901.func_code.co_firstlineno + 3)
75 """%(bug1333982.func_code.co_firstlineno + 1,
76 bug1333982.func_code.co_firstlineno + 2,
77 bug1333982.func_code.co_firstlineno + 3)
H A Dtest_funcattrs.py60 test.func_code = self.b.func_code
117 self.assertEqual(type(func.func_code), types.CodeType)
120 d.func_code = c.func_code
121 self.assertEqual(c.func_code, d.func_code)
125 b.func_code = c.func_code
129 self.fail("func_code wit
[all...]
H A Dtest_new.py91 new.function(f.func_code, {}, "blah")
92 g2 = new.function(g.func_code, {}, "blah", (2,), g.func_closure)
94 g3 = new.function(g.func_code, {}, "blah", None, g.func_closure)
97 self.assertRaises(exc, new.function, func.func_code, {}, "", None, closure)
110 c = f.func_code
H A Dtest_py3kwarn.py134 self.assertWarning(f.func_code < g.func_code, w, expected)
136 self.assertWarning(f.func_code <= g.func_code, w, expected)
138 self.assertWarning(f.func_code >= g.func_code, w, expected)
140 self.assertWarning(f.func_code > g.func_code, w, expected)
H A Dtest_compile.py299 for variable in self.test_32_63_bit_values.func_code.co_consts:
387 self.assertNotEqual(id(f1.func_code), id(f2.func_code))
477 self.assertIn("_A__mangled", A.f.func_code.co_varnames)
478 self.assertIn("__not_mangled__", A.f.func_code.co_varnames)
479 self.assertIn("_A__mangled_mod", A.f.func_code.co_varnames)
480 self.assertIn("__package__", A.f.func_code.co_varnames)
H A Dtest_hotshot.py92 f_lineno = f.func_code.co_firstlineno
93 g_lineno = g.func_code.co_firstlineno
H A Dtest_grammar.py153 self.assertEqual(f2.func_code.co_varnames, ('one_argument',))
154 self.assertEqual(f3.func_code.co_varnames, ('two', 'arguments'))
156 self.assertEqual(f4.func_code.co_varnames,
159 self.assertEqual(f5.func_code.co_varnames,
162 self.assertEqual(f4.func_code.co_varnames,
164 self.assertEqual(f5.func_code.co_varnames,
201 self.assertEqual(v3.func_code.co_varnames, ('a', '(b, c)', 'rest', 'b', 'c'))
203 self.assertEqual(v3.func_code.co_varnames, ('a', '.1', 'rest', 'b', 'c'))
H A Dtest_sys_settrace.py272 self.compare_events(func.func_code.co_firstlineno,
282 self.compare_events(func.func_code.co_firstlineno,
441 frame.f_lineno == f.func_code.co_firstlineno + 2):
472 if not self.done and frame.f_code == self.function.func_code:
782 func_code = code variable in class:.test_jump_to_firstlineno.fake_function
/prebuilts/python/darwin-x86/2.7.5/include/python2.7/
H A Dfuncobject.h13 * They reference a code object in their func_code attribute, which is a
23 PyObject *func_code; /* A code object */ member in struct:__anon140969
34 * func_closure contains the bindings for func_code->co_freevars, so
35 * PyTuple_Size(func_closure) == PyCode_GetNumFree(func_code)
36 * (func_closure may be NULL if PyCode_GetNumFree(func_code) == 0).
56 (((PyFunctionObject *)func) -> func_code)
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
H A Dtypes.py45 CodeType = type(_f.func_code)
81 GetSetDescriptorType = type(FunctionType.func_code)
/prebuilts/python/linux-x86/2.7.5/include/python2.7/
H A Dfuncobject.h13 * They reference a code object in their func_code attribute, which is a
23 PyObject *func_code; /* A code object */ member in struct:__anon141092
34 * func_closure contains the bindings for func_code->co_freevars, so
35 * PyTuple_Size(func_closure) == PyCode_GetNumFree(func_code)
36 * (func_closure may be NULL if PyCode_GetNumFree(func_code) == 0).
56 (((PyFunctionObject *)func) -> func_code)
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/
H A Dtypes.py45 CodeType = type(_f.func_code)
81 GetSetDescriptorType = type(FunctionType.func_code)
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/
H A DCallTips.py155 argcount = fob.func_code.co_argcount
156 real_args = fob.func_code.co_varnames[arg_offset:argcount]
161 if fob.func_code.co_flags & 0x4:
163 if fob.func_code.co_flags & 0x8:
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/
H A DCallTips.py155 argcount = fob.func_code.co_argcount
156 real_args = fob.func_code.co_varnames[arg_offset:argcount]
161 if fob.func_code.co_flags & 0x4:
163 if fob.func_code.co_flags & 0x8:
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/data/
H A Dpy2_test_grammar.py157 self.assertEquals(f2.func_code.co_varnames, ('one_argument',))
158 self.assertEquals(f3.func_code.co_varnames, ('two', 'arguments'))
160 self.assertEquals(f4.func_code.co_varnames,
163 self.assertEquals(f5.func_code.co_varnames,
166 self.assertEquals(f4.func_code.co_varnames,
168 self.assertEquals(f5.func_code.co_varnames,
204 self.assertEquals(v3.func_code.co_varnames, ('a', '(b, c)', 'rest', 'b', 'c'))
206 self.assertEquals(v3.func_code.co_varnames, ('a', '.1', 'rest', 'b', 'c'))
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/data/
H A Dpy2_test_grammar.py157 self.assertEquals(f2.func_code.co_varnames, ('one_argument',))
158 self.assertEquals(f3.func_code.co_varnames, ('two', 'arguments'))
160 self.assertEquals(f4.func_code.co_varnames,
163 self.assertEquals(f5.func_code.co_varnames,
166 self.assertEquals(f4.func_code.co_varnames,
168 self.assertEquals(f5.func_code.co_varnames,
204 self.assertEquals(v3.func_code.co_varnames, ('a', '(b, c)', 'rest', 'b', 'c'))
206 self.assertEquals(v3.func_code.co_varnames, ('a', '.1', 'rest', 'b', 'c'))
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/
H A Dyacc.py460 if 1 and isinstance(v,types.FunctionType) and v.func_code.co_argcount == 1:
464 sys.stderr.write("%s:%d: Warning. Possible grammar rule '%s' defined without p_ prefix.\n" % (v.func_code.co_filename, v.func_code.co_firstlineno,n))
725 line = f.func_code.co_firstlineno
726 file = f.func_code.co_filename
734 if f.func_code.co_argcount > reqdargs:
738 if f.func_code.co_argcount < reqdargs:
2082 eline = ef.func_code.co_firstlineno
2083 efile = ef.func_code.co_filename
2086 if (ef.func_code
[all...]

Completed in 377 milliseconds

123