Lines Matching defs:name
94 PyObject *func, *name, *winner, *prep;
110 name = args[1];
111 if (!PyUnicode_Check(name)) {
113 "__build_class__: name is not a string");
186 PyObject *pargs[2] = {name, bases};
208 PyObject *margs[3] = {name, bases, ns};
217 PyErr_Format(PyExc_RuntimeError, msg, name, cls);
221 PyErr_Format(PyExc_TypeError, msg, cell_cls, name, cls);
242 "__build_class__(func, name, /, *bases, [metaclass], **kwds) -> class\n\
249 name: object
263 should be a list of names to emulate ``from name import ...``, or an
264 empty list to emulate ``import name``.
273 builtin___import___impl(PyObject *module, PyObject *name, PyObject *globals,
277 return PyImport_ImportModuleLevelObject(name, globals, locals,
1119 PyObject *v, *name, *result;
1125 name = args[1];
1127 if (_PyObject_LookupAttr(v, name, &result) == 0) {
1134 result = PyObject_GetAttr(v, name);
1140 "getattr(object, name[, default]) -> value\n\
1152 NOTE: Updates to this dictionary *will* affect name lookups in the current
1172 name: object
1175 Return whether the object has an attribute with the given name.
1177 This is done by calling getattr(obj, name) and catching AttributeError.
1181 builtin_hasattr_impl(PyObject *module, PyObject *obj, PyObject *name)
1186 if (_PyObject_LookupAttr(obj, name, &v) < 0) {
1199 * preserve those name rather than using the AC defaults.
1508 name: object
1518 builtin_setattr_impl(PyObject *module, PyObject *obj, PyObject *name,
1522 if (PyObject_SetAttr(obj, name, value) != 0)
1532 name: object
1541 builtin_delattr_impl(PyObject *module, PyObject *obj, PyObject *name)
1544 if (PyObject_SetAttr(obj, name, (PyObject *)NULL) != 0)
1712 NOTE: Whether or not updates to this dictionary will affect name lookups in
1735 const char *name = op == Py_LT ? "min" : "max";
1742 else if (!PyArg_UnpackTuple(args, name, 1, 1, &v)) {
1744 PyErr_Format(PyExc_TypeError, "%s expected at least 1 argument, got 0", name);
1762 "positional arguments", name);
1821 "%s() arg is an empty sequence", name);
3006 the full name for the built-in function len().\n\
3010 objects with the same name as a built-in value, but in\n\
3011 which the built-in of that name is also needed.");