bpo-38159: Clarify documentation of PyState_AddModule#16101
Conversation
This was never intented to be called manually from PyInit_*. Also, clarify PyState_RemoveModule return value.
|
Just to clarify "implementing an alternative import mechanism" meant someone changing Btw for context, these were added since the documentation currently specifies that As a matter of fact, in our system we do rely on this signal to correctly work with Maybe an alternative can be to update the import documentation that it should offer this guarantee? On the other hand, it seems like that should be an implementation detail and it's best to let the module themselves call the right APIs. Thoughts? |
Sorry, something went wrong.
|
Changing |
Sorry, something went wrong.
I'm proposing a PyState_AddModule doc update to make things clearer: python#16101
|
I asked over at at capi-sig. |
Sorry, something went wrong.
ncoghlan
left a comment
There was a problem hiding this comment.
Added a couple of specific suggestions that I think improve precision without making it too much harder to read.
Sorry, something went wrong.
Co-Authored-By: Nick Coghlan <ncoghlan@gmail.com>
|
Azure Pipelines didn't start, I'll try closing & reopening. |
Sorry, something went wrong.
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
Sorry, something went wrong.
This was never intented to be called manually from PyInit_*. Also, clarify PyState_RemoveModule return value. (cherry picked from commit 9bc94ec) Co-authored-by: Petr Viktorin <encukou@gmail.com>
GH-17026) This was never intented to be called manually from PyInit_*. Also, clarify PyState_RemoveModule return value. (cherry picked from commit 9bc94ec) Co-authored-by: Petr Viktorin <encukou@gmail.com> https://bugs.python.org/issue38159 Automerge-Triggered-By: @encukou
GH-17027) This was never intented to be called manually from PyInit_*. Also, clarify PyState_RemoveModule return value. (cherry picked from commit 9bc94ec) Co-authored-by: Petr Viktorin <encukou@gmail.com> https://bugs.python.org/issue38159 Automerge-Triggered-By: @encukou
This was never intented to be called manually from PyInit_*. Also, clarify PyState_RemoveModule return value.
This was never intented to be called manually from PyInit_*. Also, clarify PyState_RemoveModule return value.
This was never intented to be called manually from PyInit_*.
Also, clarify PyState_RemoveModule return value.
https://bugs.python.org/issue38159
Automerge-Triggered-By: @encukou
Automerge-Triggered-By: @encukou