summaryrefslogtreecommitdiffstats
path: root/Doc/extending/windows.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-27 17:11:23 (GMT)
committerGeorg Brandl <georg@python.org>2009-02-27 17:11:23 (GMT)
commitec12e8295242e2513fee1db3935036f6bbc6df34 (patch)
tree201475da4beaa2969ff0cb572408026ddb8feecc /Doc/extending/windows.rst
parentf341acd5b539facaae2b833842518eff5cc28fbd (diff)
downloadcpython-ec12e8295242e2513fee1db3935036f6bbc6df34.zip
cpython-ec12e8295242e2513fee1db3935036f6bbc6df34.tar.gz
cpython-ec12e8295242e2513fee1db3935036f6bbc6df34.tar.bz2
#5360: replace PyObject_HEAD_INIT by PyVarObject_HEAD_INIT.
Diffstat (limited to 'Doc/extending/windows.rst')
-rw-r--r--Doc/extending/windows.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/windows.rst b/Doc/extending/windows.rst
index 29e9e1e..8d1986f 100644
--- a/Doc/extending/windows.rst
+++ b/Doc/extending/windows.rst
@@ -169,11 +169,11 @@ described here are distributed with the Python sources in the
If your module creates a new type, you may have trouble with this line::
- PyObject_HEAD_INIT(&PyType_Type)
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
Change it to::
- PyObject_HEAD_INIT(NULL)
+ PyVarObject_HEAD_INIT(NULL, 0)
and add the following to the module initialization function::