Everything is clear on how to use xxmodule.c as a starting point to build your own module based on the explanation on the file itself, but I feel confused with the following portion of the comments at the header:
If your object type is needed in other files, you'll have to create a file "foobarobject.h"..
Before that there is the following:
If your module is named foo your sourcefile should be named foomodule.c
Which is clear from the name of the file itself xxmodule.c.
Do we have typo here for bar? or it is just another way to say use the module name + anything + object?
|
other files, you'll have to create a file "foobarobject.h"; see |
Linked PRs
Everything is clear on how to use xxmodule.c as a starting point to build your own module based on the explanation on the file itself, but I feel confused with the following portion of the comments at the header:
Before that there is the following:
Which is clear from the name of the file itself xxmodule.c.
Do we have typo here for bar? or it is just another way to say use the
module name + anything + object?cpython/Modules/xxmodule.c
Line 12 in d66b061
Linked PRs
Modules/xxmodule.cmodule-level comment #132201Modules/xxmodule.cmodule-level comment (GH-132201) #132207Modules/xxmodule.cmodule-level comment (GH-132201) #132208