]> granicus.if.org Git - python/commitdiff
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 Jul 2019 15:46:46 +0000 (08:46 -0700)
committerGitHub <noreply@github.com>
Sun, 7 Jul 2019 15:46:46 +0000 (08:46 -0700)
(cherry picked from commit f6cdd3ff687ebbf8209d793a18a042ea495c4aeb)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
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