diff options
author | AN Long <aisk@users.noreply.github.com> | 2023-04-14 07:40:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 07:40:25 (GMT) |
commit | 282f0d26e376b6c8d8cc039b23b649422acc30e9 (patch) | |
tree | e5ef7b5f17774a94a19ea35bbc136b5d921f73ea /Doc | |
parent | 756978117698eeac3af270db25d22599e681bcb3 (diff) | |
download | cpython-282f0d26e376b6c8d8cc039b23b649422acc30e9.zip cpython-282f0d26e376b6c8d8cc039b23b649422acc30e9.tar.gz cpython-282f0d26e376b6c8d8cc039b23b649422acc30e9.tar.bz2 |
Fix syntax typo in isolating extensions doc (#103516)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/howto/isolating-extensions.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/isolating-extensions.rst b/Doc/howto/isolating-extensions.rst index 2eddb58..0262054 100644 --- a/Doc/howto/isolating-extensions.rst +++ b/Doc/howto/isolating-extensions.rst @@ -372,7 +372,7 @@ To save a some tedious error-handling boilerplate code, you can combine these two steps with :c:func:`PyType_GetModuleState`, resulting in:: my_struct *state = (my_struct*)PyType_GetModuleState(type); - if (state === NULL) { + if (state == NULL) { return NULL; } @@ -435,7 +435,7 @@ For example:: PyObject *kwnames) { my_struct *state = (my_struct*)PyType_GetModuleState(defining_class); - if (state === NULL) { + if (state == NULL) { return NULL; } ... // rest of logic @@ -479,7 +479,7 @@ to get the state:: PyObject *module = PyType_GetModuleByDef(Py_TYPE(self), &module_def); my_struct *state = (my_struct*)PyModule_GetState(module); - if (state === NULL) { + if (state == NULL) { return NULL; } |