summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2019-07-07 15:40:07 (GMT)
committerXiang Zhang <angwerzx@126.com>2019-07-07 15:40:07 (GMT)
commitf6cdd3ff687ebbf8209d793a18a042ea495c4aeb (patch)
tree72701fff7a6bbcff0b0f53f7f7c3186355135a5c
parenta9b40e4546ca631e5ab41376b5b72e8f296f557d (diff)
downloadcpython-f6cdd3ff687ebbf8209d793a18a042ea495c4aeb.zip
cpython-f6cdd3ff687ebbf8209d793a18a042ea495c4aeb.tar.gz
cpython-f6cdd3ff687ebbf8209d793a18a042ea495c4aeb.tar.bz2
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
-rw-r--r--Doc/library/ctypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 2c57cc7..680703d 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -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