From: Thomas Heller Date: Fri, 16 Jan 2009 18:53:44 +0000 (+0000) Subject: Change an example in the docs to avoid a mistake when the code is copy X-Git-Tag: v2.7a1~2278 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=757d25526ab1bfb70b4a3b7ab87502b5b33881f5;p=python Change an example in the docs to avoid a mistake when the code is copy pasted and changed afterwards. --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 9ff3de053c..a98382c018 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -2441,10 +2441,10 @@ other data types containing pointer type fields. ("hreftype", HREFTYPE)] class TYPEDESC(Structure): + _anonymous_ = ("u",) _fields_ = [("u", _U), ("vt", VARTYPE)] - _anonymous_ = ("u",) The ``TYPEDESC`` structure describes a COM data type, the ``vt`` field specifies which one of the union fields is valid. Since the ``u`` field