Home
last modified time | relevance | path

Searched refs:varnames (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_new.py118 varnames = c.co_varnames
127 constants, names, varnames, filename, name,
132 constants, names, varnames, filename, name,
138 constants, names, varnames, filename, name, firstlineno, lnotab)
143 constants, names, varnames, filename, name, firstlineno, lnotab)
148 constants, (5,), varnames, filename, name, firstlineno, lnotab)
155 constants, t, varnames, filename, name,
Dtest_scope.py508 varnames = f(1).z
509 self.assertNotIn("x", varnames)
510 self.assertIn("y", varnames)
/external/python/cpython2/Lib/compiler/
Dpyassem.py280 self.varnames = list(args) or []
281 for i in range(len(self.varnames)):
282 var = self.varnames[i]
284 self.varnames[i] = var.getName()
425 self.cellvars = [name for name in self.varnames
457 return self._lookupName(arg, self.varnames)
463 self._lookupName(arg, self.varnames)
468 self._lookupName(arg, self.varnames)
483 self._lookupName(arg, self.varnames)
489 self._lookupName(arg, self.varnames)
[all …]
/external/python/cpython3/Objects/
Dcodeobject.c120 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_NewWithPosOnlyArgs() argument
135 varnames == NULL || !PyTuple_Check(varnames) || in PyCode_NewWithPosOnlyArgs()
156 if (intern_strings(varnames) < 0) { in PyCode_NewWithPosOnlyArgs()
177 n_varnames = PyTuple_GET_SIZE(varnames); in PyCode_NewWithPosOnlyArgs()
205 PyObject *arg = PyTuple_GET_ITEM(varnames, j); in PyCode_NewWithPosOnlyArgs()
241 Py_INCREF(varnames); in PyCode_NewWithPosOnlyArgs()
242 co->co_varnames = varnames; in PyCode_NewWithPosOnlyArgs()
270 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New() argument
276 varnames, freevars, cellvars, filename, in PyCode_New()
457 PyObject *varnames, *ourvarnames = NULL; in code_new() local
[all …]
/external/python/cpython2/Objects/
Dcodeobject.c95 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New() argument
105 varnames == NULL || !PyTuple_Check(varnames) || in PyCode_New()
116 intern_strings(varnames); in PyCode_New()
132 Py_INCREF(varnames); in PyCode_New()
133 co->co_varnames = varnames; in PyCode_New()
279 PyObject *varnames, *ourvarnames = NULL; in code_new() local
292 &PyTuple_Type, &varnames, in code_new()
316 ourvarnames = validate_and_copy_tuple(varnames); in code_new()
/external/python/cpython2/Lib/
Ddis.py110 def disassemble_string(code, lasti=-1, varnames=None, names=None, argument
142 if varnames:
143 print '(' + varnames[oparg] + ')',
/external/python/cpython3/Lib/
Ddis.py311 def _get_instructions_bytes(code, varnames=None, names=None, constants=None, argument
345 argval, argrepr = _get_name_info(arg, varnames)
383 def _disassemble_bytes(code, lasti=-1, varnames=None, names=None, argument
401 for instr in _get_instructions_bytes(code, varnames, names,
530 _disassemble_bytes(co.co_code, varnames=co.co_varnames,
/external/python/cpython3/Doc/c-api/
Dcode.rst36 …int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freeva…
43 …int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freeva…
/external/python/cpython3/Lib/test/
Dtest_scope.py497 varnames = f(1).z
498 self.assertNotIn("x", varnames)
499 self.assertIn("y", varnames)
/external/python/cpython2/Python/
Dmarshal.c1012 PyObject *varnames = NULL; in r_object() local
1036 varnames = r_object(p); in r_object()
1037 if (varnames == NULL) in r_object()
1058 code, consts, names, varnames, in r_object()
1066 Py_XDECREF(varnames); in r_object()
/external/python/cpython2/Doc/c-api/
Dcode.rst36 …int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freeva…
/external/python/cpython3/Python/
Dmarshal.c1309 PyObject *varnames = NULL; in r_object() local
1352 varnames = r_object(p); in r_object()
1353 if (varnames == NULL) in r_object()
1383 code, consts, names, varnames, in r_object()
1392 Py_XDECREF(varnames); in r_object()
/external/python/cpython2/Doc/library/
Dnew.rst49 .. function:: code(argcount, nlocals, stacksize, flags, codestring, constants, names, varnames, fil…
/external/llvm-project/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp190 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
192 : VarNames(varnames), Body(body) {} in VarExprAST()
Dtoy.cpp191 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
193 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm-project/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp205 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
207 : VarNames(varnames), Body(body) {} in VarExprAST()
Dtoy.cpp212 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
214 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp205 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
207 : VarNames(varnames), Body(body) {} in VarExprAST()
Dtoy.cpp212 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
214 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp190 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
192 : VarNames(varnames), Body(body) {} in VarExprAST()
Dtoy.cpp191 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
193 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm-project/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp189 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
191 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp189 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
191 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm-project/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp231 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
233 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp231 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
233 : VarNames(varnames), Body(body) {} in VarExprAST()

12