mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fix the indentation in Extending Python code example (GH-3244)
Code was indented with three spaces. Fixed using four spaces.
This commit is contained in:
parent
cb76029b47
commit
d9a2b99ac4
1 changed files with 6 additions and 6 deletions
|
@ -333,12 +333,12 @@ function.
|
|||
The method table must be referenced in the module definition structure::
|
||||
|
||||
static struct PyModuleDef spammodule = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"spam", /* name of module */
|
||||
spam_doc, /* module documentation, may be NULL */
|
||||
-1, /* size of per-interpreter state of the module,
|
||||
or -1 if the module keeps state in global variables. */
|
||||
SpamMethods
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"spam", /* name of module */
|
||||
spam_doc, /* module documentation, may be NULL */
|
||||
-1, /* size of per-interpreter state of the module,
|
||||
or -1 if the module keeps state in global variables. */
|
||||
SpamMethods
|
||||
};
|
||||
|
||||
This structure, in turn, must be passed to the interpreter in the module's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue