8000 bpo-37513: Change ValueError to TypeError in an example in ctypes doc… · python/cpython@bc0a6ce · GitHub
[go: up one dir, main page]

Skip to content

Commit bc0a6ce

Browse files
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
(cherry picked from commit f6cdd3f) Co-authored-by: Hai Shi <shihai1992@gmail.com>
1 parent e841a54 commit bc0a6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ Here is a simple example of a POINT structure, which contains two integers named
576576
>>> POINT(1, 2, 3)
577577
Traceback (most recent call last):
578578
File "<stdin>", line 1, in <module>
579-
ValueError: too many initializers
579+
TypeError: too many initializers
580580
>>>
581581

582582
You can, however, build much more complicated structures. A structure can

0 commit comments

Comments
 (0)
0