[issue4136] merge json library with simplejson 2.0.3

Amaury Forgeot d'Arc report at bugs.python.org
Fri Oct 17 21:30:55 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

About the patch: are those lines really needed?

+    PyScannerType.tp_getattro = PyObject_GenericGetAttr;
+    PyScannerType.tp_setattro = PyObject_GenericSetAttr;
+    PyScannerType.tp_alloc  = PyType_GenericAlloc;
+    PyScannerType.tp_new = PyType_GenericNew;
+    PyScannerType.tp_free = _PyObject_Del;

I've never used them. What happens if the slots are left empty, and let PyType_Ready() do the rest?

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4136>
_______________________________________


More information about the Python-bugs-list mailing list