@@ -359,7 +359,7 @@ from within *IDLE* or *PythonWin*::
359
359
>>> printf(b"%f bottles of beer\n", 42.5)
360
360
Traceback (most recent call last):
361
361
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
363
363
>>>
364
364
365
365
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::
422
422
>>> printf(b"%d %d %d", 1, 2, 3)
423
423
Traceback (most recent call last):
424
424
File "<stdin>", line 1, in <module>
425
- ArgumentError: argument 2: exceptions. TypeError: wrong type
425
+ ArgumentError: argument 2: TypeError: wrong type
426
426
>>> printf(b"%s %d %f\n", b"X", 2, 3)
427
427
X 2 3.000000
428
428
13
@@ -487,7 +487,7 @@ single character Python bytes object into a C char::
487
487
>>> strchr(b"abcdef", b"def")
488
488
Traceback (most recent call last):
489
489
File "<stdin>", line 1, in <module>
490
- ArgumentError: argument 2: exceptions. TypeError: one character string expected
490
+ ArgumentError: argument 2: TypeError: wrong type
491
491
>>> print(strchr(b"abcdef", b"x"))
492
492
None
493
493
>>> strchr(b"abcdef", b"d")
0 commit comments