Home | History | Annotate | Download | only in Objects

Lines Matching defs:tuple

1762     Py_ssize_t n;             /* guess for result tuple size */
1770 /* Special-case the common tuple and list cases, for efficiency. */
1773 a tuple *subclass* instance as-is, hence the restriction
1795 /* Fill the tuple. */
1828 /* Cut tuple back if guess was too large. */
2301 PyObject *tuple;
2303 /* Slow-path: build a temporary tuple */
2311 tuple = _PyStack_AsTuple(args, nargs);
2312 if (tuple == NULL) {
2316 result = (*call)(func, tuple, kwargs);
2317 Py_DECREF(tuple);
2826 * 3. getattr(cls, '__bases__') could return a tuple
2827 * 4. getattr(cls, '__bases__') could return something other than a tuple
2830 * (it returns the retrieved tuple).
2833 * returning NULL. If an object other than a tuple comes out of __bases__,
2948 "isinstance() arg 2 must be a type or tuple of types"))
3035 " or tuple of classes"))