Message340772
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2019年04月24日.12:58:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1556110680.79.0.127639989845.issue36710@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Eric Snow moved global variables into a _PyRuntimeState structure which is made of sub-structures. There is a single instance of _PyRuntimeState: the _PyRuntime global variable.
I would like to add "_PyRuntimeState *" parameters to functions to avoid relying directly on _PyRuntime global variable. The long term goal is to have "stateless" code: don't rely on global variables, only on input parameters. In practice, we will continue to use thread local storage (TLS) to get the "current context" like the current interpreter and the current Python thread state. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2019年04月24日 12:58:00 | vstinner | set | recipients:
+ vstinner |
| 2019年04月24日 12:58:00 | vstinner | set | messageid: <1556110680.79.0.127639989845.issue36710@roundup.psfhosted.org> |
| 2019年04月24日 12:58:00 | vstinner | link | issue36710 messages |
| 2019年04月24日 12:58:00 | vstinner | create |
|