Message119356
Re disabling interning in PyDict_SetItemString:
A comment in unicodeobject.c says that globals should not be used
before calling _PyUnicode_Init. But in Py_InitializeEx (pythonrun.c)
_PyUnicode_Init is called after _Py_ReadyTypes, _PyFrame_Init,
_PyLong_Init, PyByteArray_Init and _PyFloat_Init.
In fact, when I move _PyUnicode_Init up, the error concerning
_PyFloat_Init disappears.
Problem is, PyType_Ready also uses PyDict_SetItemString, but I
presume that _Py_ReadyTypes has to be called before anything else.
In that case it would be unavoidable that PyDict_SetItemString is
used before _PyUnicode_Init, and it might be a good idea to disable
interning. |
|
Date |
User |
Action |
Args |
2010-10-22 00:03:33 | skrah | set | recipients:
+ skrah, lemburg, amaury.forgeotdarc, mark.dickinson, vstinner |
2010-10-22 00:03:32 | skrah | set | messageid: <1287705812.96.0.350985343924.issue10156@psf.upfronthosting.co.za> |
2010-10-22 00:03:30 | skrah | link | issue10156 messages |
2010-10-22 00:03:30 | skrah | create | |
|