homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kumaraditya
Recipients Mark.Shannon, corona10, eric.snow, gvanrossum, kumaraditya, vstinner
Date 2022年01月23日.15:52:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642953144.6.0.00811454326365.issue46476@roundup.psfhosted.org>
In-reply-to
Content
> Be careful, Python must remain usable after Py_Finalize(): it's legit to call Py_Initialize() again and execute new Python code. Example executing the same code 4 times, each time Py_Initialize() and Py_Finalize() are called:
./Programs/_testembed test_repeated_init_exec 'print("Hello")'
With the current design, it isn't possible though because the code objects are modified in place so if co_quickened is freed the VM still tries to execute the copied instructions.
See https://github.com/python/cpython/blob/76dc047a0e88d10aad0405228d56e94438cdd91c/Python/specialize.c#L425 
History
Date User Action Args
2022年01月23日 15:52:24kumaradityasetrecipients: + kumaraditya, gvanrossum, vstinner, Mark.Shannon, eric.snow, corona10
2022年01月23日 15:52:24kumaradityasetmessageid: <1642953144.6.0.00811454326365.issue46476@roundup.psfhosted.org>
2022年01月23日 15:52:24kumaradityalinkissue46476 messages
2022年01月23日 15:52:24kumaradityacreate

AltStyle によって変換されたページ (->オリジナル) /