-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-110722: Add PYTHON_PRESITE to import a module before site.py is run #110769
Conversation
… before site.py is run This is only available --with-pydebug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be interesting to make this feature to release build.
For the doc, I suggest to replace package.module
with module
. You can explain in the doc that the argument can be a module of a package, with an example. I don't know.
Overall, the implementation looks correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - some minor cleanup to do, feel free to merge after that if CI says "ano" (CZ)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with the C implementation and the overall feature, I just have some remarks on the doc.
I suggest to replace site.py
with the site module
. In Sphinx, you can even create a link if you want:
the :mod:`site` module
The presite module is imported, it's exactly run. But I'm fine with run_presite
name :-) Well, in fact, it can be seed as being "run" ;-)
Congrats! |
This is only available --with-pydebug.
📚 Documentation preview 📚: https://cpython-previews--110769.org.readthedocs.build/