Skip to content

Commit ee238c8

Browse files
shihai1991lisroach
authored andcommitted
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (pythonGH-14615)
1 parent dae02ed commit ee238c8

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)