Message188670
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc, benjamin.peterson, dabeaz, jsafrane, pitrou |
| Date |
2013年05月07日.15:54:16 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1367942056.28.0.645884795017.issue17922@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Python remembers SWIG types because SWIG generates code like this:
PyTypeObject * SwigPyObject_TypeOnce(void) {
static PyTypeObject swigpyobject_type;
static int type_init = 0;
if (!type_init) {
// ... initialization code ...
swigpyobject_type = tmp;
type_init = 1;
if (PyType_Ready(&swigpyobject_type) < 0)
return NULL;
}
}
SWIG should reset "type_init" on a fresh interpreter.
The initXxx() function should do this. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年05月07日 15:54:16 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, benjamin.peterson, dabeaz, jsafrane |
| 2013年05月07日 15:54:16 | amaury.forgeotdarc | set | messageid: <1367942056.28.0.645884795017.issue17922@psf.upfronthosting.co.za> |
| 2013年05月07日 15:54:16 | amaury.forgeotdarc | link | issue17922 messages |
| 2013年05月07日 15:54:16 | amaury.forgeotdarc | create |
|