Home
last modified time | relevance | path

Searched refs:func_code (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Include/
Dfuncobject.h23 PyObject *func_code; /* A code object, the __code__ attribute */ member
73 (((PyFunctionObject *)func) -> func_code)
/third_party/python/Lib/lib2to3/tests/data/
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'))
/third_party/python/Objects/
Dfuncobject.c43 op->func_code = code; in PyFunction_NewWithQualName()
91 return ((PyFunctionObject *) op) -> func_code; in PyFunction_GetCode()
257 Py_INCREF(op->func_code); in func_get_code()
258 return op->func_code; in func_get_code()
291 Py_XSETREF(op->func_code, value); in func_set_code()
575 Py_CLEAR(op->func_code); in func_clear()
610 Py_VISIT(f->func_code); in func_traverse()
/third_party/mbedtls/tests/scripts/
Dgenerate_test_code.py653 func_name, args, func_code, func_dispatch =\
655 suite_functions += func_code
666 func_code = (suite_helpers +
668 return suite_dependencies, dispatch_code, func_code, func_info
1029 suite_dependencies, dispatch_code, func_code, func_info = \
1031 snippets['functions_code'] = func_code
Dtest_generate_test_code.py927 suite_dependencies, dispatch_code, func_code, func_info = \
938 self.assertEqual(func_code, in_func_code)
970 suite_dependencies, dispatch_code, func_code, func_info = \
1032 self.assertEqual(func_code, expected_func_code)
/third_party/python/Lib/
Dinspect.py2169 func_code = func.__code__
2170 pos_count = func_code.co_argcount
2171 arg_names = func_code.co_varnames
2172 posonly_count = func_code.co_posonlyargcount
2174 keyword_only_count = func_code.co_kwonlyargcount
2210 if func_code.co_flags & CO_VARARGS:
2227 if func_code.co_flags & CO_VARKEYWORDS:
2229 if func_code.co_flags & CO_VARARGS:
/third_party/python/Doc/whatsnew/
D3.0.rst785 :attr:`func_closure`, :attr:`func_code`, :attr:`func_defaults`,
/third_party/python/Misc/
DHISTORY16648 ``func.func_code.co_name``. The repr() of a generator now also
25324 the func_code attribute is writable.
28920 - Allow assignment to some attributes of function objects: func_code,