bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
authorHai Shi <shihai1992@gmail.com>
Sun, 7 Jul 2019 15:40:07 +0000 (10:40 -0500)
committerXiang Zhang <angwerzx@126.com>
Sun, 7 Jul 2019 15:40:07 +0000 (23:40 +0800)
Doc/library/ctypes.rst

index 2c57cc7ec427a719f840357ce98c567e48b53d62..680703d4483f378256367d3a47da4cd1a32ae30e 100644 (file)
@@ -576,7 +576,7 @@ Here is a simple example of a POINT structure, which contains two integers named
    >>> POINT(1, 2, 3)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
-   ValueError: too many initializers
+   TypeError: too many initializers
    >>>
 
 You can, however, build much more complicated structures.  A structure can