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

Skip to content
/ cpython Public

Commit 00bf4d6

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 dd3862e commit 00bf4d6

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
@@ -565,7 +565,7 @@ Here is a simple example of a POINT structure, which contains two integers named
565565
>>> POINT(1, 2, 3)
566566
Traceback (most recent call last):
567567
File "<stdin>", line 1, in <module>
568-
ValueError: too many initializers
568+
TypeError: too many initializers
569569
>>>
570570

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

0 commit comments

Comments
 (0)
0