We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5123aaa commit 87bb82cCopy full SHA for 87bb82c
Doc/library/ctypes.rst
@@ -487,7 +487,7 @@ single character Python bytes object into a C char::
487
>>> strchr(b"abcdef", b"def")
488
Traceback (most recent call last):
489
File "<stdin>", line 1, in <module>
490
- ArgumentError: argument 2: TypeError: wrong type
+ ArgumentError: argument 2: TypeError: one character string expected
491
>>> print(strchr(b"abcdef", b"x"))
492
None
493
>>> strchr(b"abcdef", b"d")
0 commit comments