FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-117953: Always Run Extension Init Func in Main Interpreter First by ericsnowcurrently · Pull Request #117487 · python/cpython · GitHub

/ cpython Public

gh-117953: Always Run Extension Init Func in Main Interpreter First - #117487

Closed
ericsnowcurrently wants to merge 6 commits into
python:mainfrom
ericsnowcurrently:load-ext-in-main-interp
Closed

gh-117953: Always Run Extension Init Func in Main Interpreter First#117487
ericsnowcurrently wants to merge 6 commits into
python:mainfrom
ericsnowcurrently:load-ext-in-main-interp

Conversation

ericsnowcurrently commented Apr 2, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

ericsnowcurrently changed the title Always Run Extension Init Func in Main Interpreter First gh-117953: Always Run Extension Init Func in Main Interpreter First Apr 16, 2024

neonene commented Apr 18, 2024

Copy link
Copy Markdown
Contributor

I tried this PR on Windows. The following two results were unexpected to me:

...
>>> _xxsubinterpreters.run_string(i, "import _datetime; print(_datetime)")

<module '_datetime' (built-in)>  # legacy module is imported?
...
>>> _xxsubinterpreters.run_string(i, "import _testcapi")
>>> _xxsubinterpreters.destroy(i)

Debug memory block at address p=0000000002EB8B90: API ' '
    15987178197214944733 bytes originally requested
    The 7 pad bytes at p-7 are not all FORBIDDENBYTE (0xfd):
        at p-7: 0x00 *** OUCH
        at p-6: 0x00 *** OUCH
        at p-5: 0x00 *** OUCH
        ...

Copy link
Copy Markdown
Member Author

Thanks for trying it. That info is helpful. FYI, I'm working on extra changes here as the current PR appears to be incomplete.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL