GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-26515: Update C API docs to use PyModuleDef_Init() by berkerpeksag · Pull Request #8682 · python/cpython Conversation
| |||||||||||||||||||||||||||||||||||||||||||
| } | ||
|
|
||
| then we need to specify the :c:func:`spam_exec` function for the | ||
| c:var:`Py_mod_exec` slot:: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Missing the leading : here (that appears to be what the CI error is complaining about)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| We discuss the use of ``PyMODINIT_FUNC`` as a function return type later in this | ||
| sample. | ||
| We discuss the use of :c:macro:`PyMODINIT_FUNC` as a function return type later |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
With the modified example, this macro hasn't actually been referenced yet. Instead, the forward reference needs to explain that this list of slots will then be added to a PyModuleDef struct defining the module as a whole, which is described later.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry for getting to this so late -- I missed the review request notification.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -204,24 +204,34 @@ usually declare a static object variable at the beginning of your file:: | |||
|
|
|||
| static PyObject *SpamError; | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is a problem if the module is loaded more than once (for example, in multiple subinterpreters).
In that case, spam_exec would be executed multiple times, each time calling PyErr_NewException and setting SpamError to the newly created error object.
This pointer needs to be part of per-module state.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
When you're done making the requested changes, leave the comment: And if you don't make the requested changes, you will be put in the comfy chair! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I removed the " needs backport to 3.6" label, the 3.6 branch no longer accept bugfixes (only security fixes are accepted): https://devguide.python.org/#status-of-python-branches |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@berkerpeksag It looks like this one was close to being merged. When you have a chance, please review the changes requested by @ncoghlan and @encukou. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@berkerpeksag, ping |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'll update my branch this weekend. Sorry for my late response! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
More detailed discussion/insructions is in PEP 630. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@encukou so is this still needed or is PEP 630 the main reference point now? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Because of PEP 630's open issues, making |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you. Closing this for now then. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.