• Home
  • Raw
  • Download

Lines Matching +full:- +full:o2

15    Print an object 'o' on file 'fp'.  Returns -1 on error. The flags argument
68 to the value 'v'. Raise an exception and return -1 on failure; return 0 on
79 'v'. an exception and return -1 on failure; return 0 on success.
88 -1 on failure.
98 Delete attribute named attr_name, for object o. Returns -1
113 Called by the repr() built-in function. */
125 Called by the str() and print() built-in functions. */
185 Return 0 on success, raise an exception and return -1 on error.
208 function calls of the Python standard library. On 64-bit CPU, it allocates
287 arguments. The C arguments are described using a mkvalue-style format
373 failure, return -1.
383 considered to be false and -1 on failure.
393 considered to be false and -1 on failure.
410 On error, -1 is returned.
426 If neither of those return a non-negative value, then return the default
427 value. If one of the calls fails, this function returns -1. */
440 Raise an exception and return -1 on failure; return 0 on success.
446 Returns -1 on failure.
452 Returns -1 on failure.
466 buffer interface and returns a pointer to a read-only memory location
470 occurs. Otherwise, -1 is returned and an exception set. */
484 single segment) buffer interface and returns a pointer to a read-only memory
488 error occurs. Otherwise, -1 is returned and an exception set. */
499 occurs. Otherwise, -1 is returned and an exception set. */
512 (((obj)->ob_type->tp_as_buffer != NULL) && \
513 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
515 /* This is a C-API version of the getbuffer function call. It checks
519 Returns -1 and raises an error on failure and returns 0 on success. */
524 Note that view->ndim is the assumed size of indices. */
527 /* Return the implied itemsize of the data-format area from a
528 struct-style description. */
540 0 on success and return -1 and raise a PyBuffer_Error on
544 If fort is 'F', then if the object is multi-dimensional,
546 Fortran-style (first dimension varies the fastest). If
548 in C-style (last dimension varies the fastest). If fort
556 /*Fill the strides array with byte-strides of a contiguous
557 (Fortran-style if fort is 'F' or C-style otherwise)
566 /* Fills in a buffer-info structure correctly for an exporter
570 Returns 0 on success and -1 (with raising an error) on error. */
594 ((obj)->ob_type->tp_iternext != NULL && \
595 (obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented)
614 /* Returns the result of adding o1 and o2, or NULL on failure.
616 This is the equivalent of the Python expression: o1 + o2. */
617 PyAPI_FUNC(PyObject *) PyNumber_Add(PyObject *o1, PyObject *o2);
619 /* Returns the result of subtracting o2 from o1, or NULL on failure.
621 This is the equivalent of the Python expression: o1 - o2. */
622 PyAPI_FUNC(PyObject *) PyNumber_Subtract(PyObject *o1, PyObject *o2);
624 /* Returns the result of multiplying o1 and o2, or NULL on failure.
626 This is the equivalent of the Python expression: o1 * o2. */
627 PyAPI_FUNC(PyObject *) PyNumber_Multiply(PyObject *o1, PyObject *o2);
630 /* This is the equivalent of the Python expression: o1 @ o2. */
631 PyAPI_FUNC(PyObject *) PyNumber_MatrixMultiply(PyObject *o1, PyObject *o2);
634 /* Returns the result of dividing o1 by o2 giving an integral result,
637 This is the equivalent of the Python expression: o1 // o2. */
638 PyAPI_FUNC(PyObject *) PyNumber_FloorDivide(PyObject *o1, PyObject *o2);
640 /* Returns the result of dividing o1 by o2 giving a float result, or NULL on
643 This is the equivalent of the Python expression: o1 / o2. */
644 PyAPI_FUNC(PyObject *) PyNumber_TrueDivide(PyObject *o1, PyObject *o2);
646 /* Returns the remainder of dividing o1 by o2, or NULL on failure.
648 This is the equivalent of the Python expression: o1 % o2. */
649 PyAPI_FUNC(PyObject *) PyNumber_Remainder(PyObject *o1, PyObject *o2);
651 /* See the built-in function divmod.
655 This is the equivalent of the Python expression: divmod(o1, o2). */
656 PyAPI_FUNC(PyObject *) PyNumber_Divmod(PyObject *o1, PyObject *o2);
658 /* See the built-in function pow. Returns NULL on failure.
660 This is the equivalent of the Python expression: pow(o1, o2, o3),
662 PyAPI_FUNC(PyObject *) PyNumber_Power(PyObject *o1, PyObject *o2,
667 This is the equivalent of the Python expression: -o. */
685 /* Returns the result of left shifting o1 by o2 on success, or NULL on failure.
687 This is the equivalent of the Python expression: o1 << o2. */
688 PyAPI_FUNC(PyObject *) PyNumber_Lshift(PyObject *o1, PyObject *o2);
690 /* Returns the result of right shifting o1 by o2 on success, or NULL on
693 This is the equivalent of the Python expression: o1 >> o2. */
694 PyAPI_FUNC(PyObject *) PyNumber_Rshift(PyObject *o1, PyObject *o2);
696 /* Returns the result of bitwise and of o1 and o2 on success, or NULL on
699 This is the equivalent of the Python expression: o1 & o2. */
700 PyAPI_FUNC(PyObject *) PyNumber_And(PyObject *o1, PyObject *o2);
702 /* Returns the bitwise exclusive or of o1 by o2 on success, or NULL on failure.
704 This is the equivalent of the Python expression: o1 ^ o2. */
705 PyAPI_FUNC(PyObject *) PyNumber_Xor(PyObject *o1, PyObject *o2);
707 /* Returns the result of bitwise or on o1 and o2 on success, or NULL on
710 This is the equivalent of the Python expression: o1 | o2. */
711 PyAPI_FUNC(PyObject *) PyNumber_Or(PyObject *o1, PyObject *o2);
714 ((obj)->ob_type->tp_as_number != NULL && \
715 (obj)->ob_type->tp_as_number->nb_index != NULL)
725 second argument 'exc' is the error-type to return. If it is NULL, then the
742 /* --- In-place variants of (some of) the above number protocol functions -- */
744 /* Returns the result of adding o2 to o1, possibly in-place, or NULL
747 This is the equivalent of the Python expression: o1 += o2. */
748 PyAPI_FUNC(PyObject *) PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2);
750 /* Returns the result of subtracting o2 from o1, possibly in-place or
753 This is the equivalent of the Python expression: o1 -= o2. */
754 PyAPI_FUNC(PyObject *) PyNumber_InPlaceSubtract(PyObject *o1, PyObject *o2);
756 /* Returns the result of multiplying o1 by o2, possibly in-place, or NULL on
759 This is the equivalent of the Python expression: o1 *= o2. */
760 PyAPI_FUNC(PyObject *) PyNumber_InPlaceMultiply(PyObject *o1, PyObject *o2);
763 /* This is the equivalent of the Python expression: o1 @= o2. */
764 PyAPI_FUNC(PyObject *) PyNumber_InPlaceMatrixMultiply(PyObject *o1, PyObject *o2);
767 /* Returns the result of dividing o1 by o2 giving an integral result, possibly
768 in-place, or NULL on failure.
770 This is the equivalent of the Python expression: o1 /= o2. */
772 PyObject *o2);
774 /* Returns the result of dividing o1 by o2 giving a float result, possibly
775 in-place, or null on failure.
777 This is the equivalent of the Python expression: o1 /= o2. */
779 PyObject *o2);
781 /* Returns the remainder of dividing o1 by o2, possibly in-place, or NULL on
784 This is the equivalent of the Python expression: o1 %= o2. */
785 PyAPI_FUNC(PyObject *) PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2);
787 /* Returns the result of raising o1 to the power of o2, possibly in-place,
790 This is the equivalent of the Python expression: o1 **= o2,
791 or o1 = pow(o1, o2, o3) if o3 is present. */
792 PyAPI_FUNC(PyObject *) PyNumber_InPlacePower(PyObject *o1, PyObject *o2,
795 /* Returns the result of left shifting o1 by o2, possibly in-place, or NULL
798 This is the equivalent of the Python expression: o1 <<= o2. */
799 PyAPI_FUNC(PyObject *) PyNumber_InPlaceLshift(PyObject *o1, PyObject *o2);
801 /* Returns the result of right shifting o1 by o2, possibly in-place or NULL
804 This is the equivalent of the Python expression: o1 >>= o2. */
805 PyAPI_FUNC(PyObject *) PyNumber_InPlaceRshift(PyObject *o1, PyObject *o2);
807 /* Returns the result of bitwise and of o1 and o2, possibly in-place, or NULL
810 This is the equivalent of the Python expression: o1 &= o2. */
811 PyAPI_FUNC(PyObject *) PyNumber_InPlaceAnd(PyObject *o1, PyObject *o2);
813 /* Returns the bitwise exclusive or of o1 by o2, possibly in-place, or NULL
816 This is the equivalent of the Python expression: o1 ^= o2. */
817 PyAPI_FUNC(PyObject *) PyNumber_InPlaceXor(PyObject *o1, PyObject *o2);
819 /* Returns the result of bitwise or of o1 and o2, possibly in-place,
822 This is the equivalent of the Python expression: o1 |= o2. */
823 PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
840 /* Return the size of sequence object o, or -1 on failure. */
849 /* Return the concatenation of o1 and o2 on success, and NULL on failure.
851 This is the equivalent of the Python expression: o1 + o2. */
852 PyAPI_FUNC(PyObject *) PySequence_Concat(PyObject *o1, PyObject *o2);
871 and return -1 on failure; return 0 on success.
876 /* Delete the 'i'-th element of the sequence 'v'. Returns -1 on failure.
882 from 'i1' to 'i2'. Returns -1 on failure.
889 Returns -1 on failure.
917 /* Return the 'i'-th element of the sequence 'o', assuming that o was returned
925 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
930 (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
931 : ((PyTupleObject *)(sf))->ob_item)
936 On failure, return -1. This is equivalent to the Python expression:
941 'seq'; -1 on error.
955 PY_ITERSEARCH_COUNT: return # of times obj appears in seq; -1 if
957 PY_ITERSEARCH_INDEX: return 0-based index of first occurrence of
958 obj in seq; set ValueError and return -1 if none found;
959 also return -1 on error.
960 PY_ITERSEARCH_CONTAINS: return 1 if obj in seq, else 0; -1 on
967 /* For DLL-level backwards compatibility */
970 to 'value', return 1, otherwise return 0. On error, return -1.
975 /* For source-level backwards compatibility */
980 On error, return -1.
986 /* --- In-place versions of some of the above Sequence functions --- */
988 /* Append sequence 'o2' to sequence 'o1', in-place when possible. Return the
991 This is the equivalent of the Python expression: o1 += o2. */
992 PyAPI_FUNC(PyObject *) PySequence_InPlaceConcat(PyObject *o1, PyObject *o2);
994 /* Repeat sequence 'o' by 'count', in-place when possible. Return the resulting
1008 /* Returns the number of keys in mapping object 'o' on success, and -1 on
1022 Remove the mapping for the string 'key' from the mapping 'o'. Returns -1 on
1033 Returns -1 on failure.
1062 where each item is a tuple containing a key-value pair. On failure, return
1073 Returns -1 on failure.