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 — gh-140550: Initial implementation of PEP 793 – PyModExport by encukou · Pull Request #140556 · python/cpython Conversation
|
| import unittest | ||
| import types |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find this in PEP 8.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
!buildbot AMD64.FreeBSD.Refleaks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit 01d52ba 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140556%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Yes. There's a lot to add since the PEP calls for soft-deprecation of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Kumar Aditya <[email protected]>
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.
LGTM. Just please move _PyModule_GetGCHooks() to pycore_moduleobject.h.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| static inline PyModuleDef *_PyModule_GetDefOrNull(PyObject *arg) { | ||
| PyModuleObject *mod = _PyModule_CAST(arg); | ||
| if (mod->md_token_is_def) { | ||
| return (PyModuleDef *)((PyModuleObject *)mod)->md_token; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| return (PyModuleDef *)((PyModuleObject *)mod)->md_token; | |
| return (PyModuleDef *)mod->md_token; |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
||
| PyMODINIT_FUNC | ||
| FUNC_NAME(MODULE_NAME)(void) | ||
| INITFUNC_NAME(MODULE_NAME)(void) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is it really needed to define a PyInit function if a modexport function is defined with slots? Developers may reuse this code as an example.
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.
Thanks for the catch! I think I had some platform-specific issues with the current version of setuptools. I added this to the TODO list in the issue; I'll get to it in a later PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thank you for the review! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Congrats :-) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I created #141056 to fix the issue. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…honGH-140556) Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
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.