Skip to content

Commit 87bb82c

Browse files
committed
Bring back the original error message in docs
1 parent 5123aaa commit 87bb82c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/ctypes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -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: TypeError: wrong type
490+
ArgumentError: argument 2: TypeError: one character string expected
491491
>>> print(strchr(b"abcdef", b"x"))
492492
None
493493
>>> strchr(b"abcdef", b"d")

0 commit comments

Comments
 (0)