File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ a variable indicating whether the method uses keyword arguments or
82
82
not, and docstrings. These are explained in the next section. If you
83
83
want to add constants to the module, then you store the returned value
84
84
from Py_InitModule which is a module object. The most general way to
85
- add itmes to the module is to get the module dictionary using
85
+ add items to the module is to get the module dictionary using
86
86
PyModule_GetDict(module). With the module dictionary, you can add
87
87
whatever you like to the module manually. An easier way to add objects
88
88
to the module is to use one of three additional Python C-API calls
@@ -212,7 +212,7 @@ special attention to the difference between 'N' and 'O' in the format
212
212
string or you can easily create memory leaks. The 'O' format string
213
213
increments the reference count of the :ctype: `PyObject * ` C-variable it
214
214
corresponds to, while the 'N' format string steals a reference to the
215
- corresponding :ctype: `PyObject * ` C-variable. You should use 'N' if you ave
215
+ corresponding :ctype: `PyObject * ` C-variable. You should use 'N' if you have
216
216
already created a reference for the object and just want to give that
217
217
reference to the tuple. You should use 'O' if you only have a borrowed
218
218
reference to an object and need to create one to provide for the
You can’t perform that action at this time.
0 commit comments