There was an error while loading. Please reload this page.
1 parent 8b2676a commit 64f77f8Copy full SHA for 64f77f8
1 file changed
TODO.rst
@@ -6,6 +6,33 @@ TODO list for new Python C API
6
function?
7
* Do we need ``PySequence_Fast_GetItemRef()``?
8
9
+Remove Py_TYPE()?
10
+=================
11
+
12
+Error::
13
14
+ PyErr_Format(PyExc_TypeError,
15
+ "Struct() argument 1 must be a str or bytes object, "
16
+ "not %.200s",
17
+ Py_TYPE(format)->tp_name);
18
19
+Dealloc::
20
21
+ static void
22
+ s_dealloc(PyStructObject *s)
23
+ {
24
+ ...
25
+ Py_TYPE(s)->tp_free((PyObject *)s);
26
+ }
27
28
+Object size::
29
30
+ Py_ssize_t size = _PyObject_SIZE(Py_TYPE(self)) + sizeof(formatcode);
31
32
+Check type::
33
34
+ #define PyStruct_CheckExact(op) (Py_TYPE(op) == &PyStructType)
35
36
Issues
37
======
38
0 commit comments