Skip to content

Commit b07c15f

Browse files
committed
Remove outdated exceptions prefix from doc examples
1 parent a589114 commit b07c15f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/ctypes.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ from within *IDLE* or *PythonWin*::
359359
>>> printf(b"%f bottles of beer\n", 42.5)
360360
Traceback (most recent call last):
361361
File "<stdin>", line 1, in <module>
362-
ArgumentError: argument 2: exceptions.TypeError: Don't know how to convert parameter 2
362+
ArgumentError: argument 2: TypeError: Don't know how to convert parameter 2
363363
>>>
364364

365365
As has been mentioned before, all Python types except integers, strings, and
@@ -422,7 +422,7 @@ prototype for a C function), and tries to convert the arguments to valid types::
422422
>>> printf(b"%d %d %d", 1, 2, 3)
423423
Traceback (most recent call last):
424424
File "<stdin>", line 1, in <module>
425-
ArgumentError: argument 2: exceptions.TypeError: wrong type
425+
ArgumentError: argument 2: TypeError: wrong type
426426
>>> printf(b"%s %d %f\n", b"X", 2, 3)
427427
X 2 3.000000
428428
13
@@ -487,7 +487,7 @@ single character Python bytes object into a C char::
487487
>>> strchr(b"abcdef", b"def")
488488
Traceback (most recent call last):
489489
File "<stdin>", line 1, in <module>
490-
ArgumentError: argument 2: exceptions.TypeError: one character string expected
490+
ArgumentError: argument 2: TypeError: wrong type
491491
>>> print(strchr(b"abcdef", b"x"))
492492
None
493493
>>> strchr(b"abcdef", b"d")

0 commit comments

Comments
 (0)