summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-11-14 15:48:13 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-11-14 15:48:13 (GMT)
commit1062e706e5778d17b590414529c9e0191e24bea0 (patch)
tree034ed3c4788ac1e09dfd20cd6a6936cb67b0d931 /Tools
parent418c3b1e26770dd3920ed750f53f586b374e61bb (diff)
downloadcpython-1062e706e5778d17b590414529c9e0191e24bea0.zip
cpython-1062e706e5778d17b590414529c9e0191e24bea0.tar.gz
cpython-1062e706e5778d17b590414529c9e0191e24bea0.tar.bz2
Don't initialize tp_type statically, it won't work on Windows. Spotted
by Thomas Heller (patch 459442).
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/bgenObjectDefinition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenObjectDefinition.py b/Tools/bgen/bgen/bgenObjectDefinition.py
index 01585bb..1d5cb22 100644
--- a/Tools/bgen/bgen/bgenObjectDefinition.py
+++ b/Tools/bgen/bgen/bgenObjectDefinition.py
@@ -164,7 +164,7 @@ class ObjectDefinition(GeneratorGroup):
Output()
Output("%sPyTypeObject %s = {", sf, self.typename)
IndentLevel()
- Output("PyObject_HEAD_INIT(&PyType_Type)")
+ Output("PyObject_HEAD_INIT(NULL)")
Output("0, /*ob_size*/")
Output("\"%s\", /*tp_name*/", self.name)
Output("sizeof(%s), /*tp_basicsize*/", self.objecttype)