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

8000
Skip to content

Commit 7749ff8

Browse files
shihai1991DinoV
authored andcommitted
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (pythonGH-14615)
1 parent c6c4f58 commit 7749ff8

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