Message290002
| Author |
serhiy.storchaka |
| Recipients |
eric.snow, serhiy.storchaka, vstinner |
| Date |
2017年03月22日.17:16:49 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1490203009.58.0.867795444212.issue29881@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The problem with existing static variables are that they are not properly cleared. When the Python interpreter is finalized and reinitialized they can contain invalid references. This patch fixes this issue.
> * It requires to write "var.obj" instead of just "var" to access the Python object
You can use a dynamic array of PyObject** instead of a linked list for collecting references to "static variables" or use gc_next/gc_refs for managing a linked list. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年03月22日 17:16:49 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, eric.snow |
| 2017年03月22日 17:16:49 | serhiy.storchaka | set | messageid: <1490203009.58.0.867795444212.issue29881@psf.upfronthosting.co.za> |
| 2017年03月22日 17:16:49 | serhiy.storchaka | link | issue29881 messages |
| 2017年03月22日 17:16:49 | serhiy.storchaka | create |
|