]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
I'm using the xxmodule and xxsubtype to test the msvccompiler on Windows. I'm having...
authorChristian Heimes <christian@cheimes.de>
Sun, 18 Nov 2007 21:30:36 +0000 (21:30 +0000)
committerChristian Heimes <christian@cheimes.de>
Sun, 18 Nov 2007 21:30:36 +0000 (21:30 +0000)
Modules/xxmodule.c

index 7509e2062cc668986c88b0509c24c44674f15bbc..75285f0a30af59f590d3ea93261963f249068ae4 100644 (file)
@@ -246,7 +246,7 @@ static PyTypeObject Str_Type = {
        0,                      /*tp_methods*/
        0,                      /*tp_members*/
        0,                      /*tp_getset*/
-       &PyUnicode_Type,        /*tp_base*/
+       0,                      /*tp_base*/
        0,                      /*tp_dict*/
        0,                      /*tp_descr_get*/
        0,                      /*tp_descr_set*/
@@ -301,7 +301,7 @@ static PyTypeObject Null_Type = {
        0,                      /*tp_methods*/
        0,                      /*tp_members*/
        0,                      /*tp_getset*/
-       &PyBaseObject_Type,     /*tp_base*/
+       0,                      /*tp_base*/
        0,                      /*tp_dict*/
        0,                      /*tp_descr_get*/
        0,                      /*tp_descr_set*/
@@ -341,6 +341,9 @@ initxx(void)
 {
        PyObject *m;
 
+       Null_Type.tp_base = &PyBaseObject_Type;
+       Str_Type.tp_base = &PyUnicode_Type;
+
        /* Finalize the type object including setting type of the new type
         * object; doing it here is required for portability to Windows 
         * without requiring C++. */