File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,22 @@ Direct API functions
42
42
Return a new bytearray object from any object, *o *, that implements the
43
43
:ref: `buffer protocol <bufferobjects >`.
44
44
45
+ On failure, return ``NULL `` with an exception set.
46
+
45
47
46
48
.. c :function :: PyObject* PyByteArray_FromStringAndSize (const char *string, Py_ssize_t len)
47
49
48
- Create a new bytearray object from *string * and its length, *len *. On
49
- failure, ``NULL `` is returned.
50
+ Create a new bytearray object from *string * and its length, *len *.
51
+
52
+ On failure, return ``NULL `` with an exception set.
50
53
51
54
52
55
.. c :function :: PyObject* PyByteArray_Concat (PyObject *a, PyObject *b)
53
56
54
57
Concat bytearrays *a * and *b * and return a new bytearray with the result.
55
58
59
+ On failure, return ``NULL `` with an exception set.
60
+
56
61
57
62
.. c :function :: Py_ssize_t PyByteArray_Size (PyObject *bytearray)
58
63
You can’t perform that action at this time.
0 commit comments