Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit282f0d2

Browse files
authored
Fix syntax typo in isolating extensions doc (#103516)
1 parent7569781 commit282f0d2

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)

[8]ページ先頭

©2009-2025 Movatter.jp