[Python-checkins] bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
Miss Islington (bot)
webhook-mailer at python.org
Sun Jul 7 11:59:18 EDT 2019
https://github.com/python/cpython/commit/00bf4d64ecb01027be40c32d822e47e55d6b5c76
commit: 00bf4d64ecb01027be40c32d822e47e55d6b5c76
branch: 2.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-07-07T08:59:14-07:00
summary:
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
(cherry picked from commit f6cdd3ff687ebbf8209d793a18a042ea495c4aeb)
Co-authored-by: Hai Shi <shihai1992 at gmail.com>
files:
M Doc/library/ctypes.rst
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index df9ccbf39084..6a5299145f95 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -565,7 +565,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
More information about the Python-checkins
mailing list