8000 Fix syntax typo in isolating extensions doc (#103516) · python/cpython@282f0d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 282f0d2

Browse files
authored
Fix syntax typo in isolating extensions doc (#103516)
1 parent 7569781 commit 282f0d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/howto/isolating-extensions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ To save a some tedious error-handling boilerplate code, you can combine
372372
these two steps with :c:func:`PyType_GetModuleState`, resulting in::
373373

374374
my_struct *state = (my_struct*)PyType_GetModuleState(type);
375-
if (state === NULL) {
375+
if (state == NULL) {
376376
return NULL;
377377
}
378378

@@ -435,7 +435,7 @@ For example::
435435
PyObject *kwnames)
436436
{
437437
my_struct *state = (my_struct*)PyType_GetModuleState(defining_class);
438-
if (state === NULL) {
438+
if (state == NULL) {
439439
return NULL;
440440
}
441441
... // rest of logic
@@ -479,7 +479,7 @@ to get the state::
479479

480480
PyObject *module = PyType_GetModuleByDef(Py_TYPE(self), &module_def);
481481
my_struct *state = (my_struct*)PyModule_GetState(module);
482-
if (state === NULL) {
482+
if (state == NULL) {
483483
return NULL;
484484
}
485485

0 commit comments

Comments
 (0)
0