diff -r 522adc2e082a Doc/howto/functional.rst --- a/Doc/howto/functional.rst Tue Oct 04 18:17:08 2016 +0300 +++ b/Doc/howto/functional.rst Wed Oct 05 15:06:24 2016 +0530 @@ -207,7 +207,7 @@ 3 >>> it.next() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in StopIteration >>> @@ -477,7 +477,7 @@ 2 >>> gen.next() Traceback (most recent call last): - File "stdin", line 1, in ? + File "stdin", line 1, in File "stdin", line 2, in generate_ints StopIteration @@ -581,7 +581,7 @@ 9 >>> print it.next() Traceback (most recent call last): - File "t.py", line 15, in ? + File "t.py", line 15, in print it.next() StopIteration diff -r 522adc2e082a Doc/library/ctypes.rst --- a/Doc/library/ctypes.rst Tue Oct 04 18:17:08 2016 +0300 +++ b/Doc/library/ctypes.rst Wed Oct 05 15:06:24 2016 +0530 @@ -87,7 +87,7 @@ <_FuncPtr object at 0x...> >>> print windll.kernel32.MyOwnFunction # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in File "ctypes.py", line 239, in __getattr__ func = _StdcallFuncPtr(name, self) AttributeError: function 'MyOwnFunction' not found @@ -126,7 +126,7 @@ <_FuncPtr object at 0x...> >>> cdll.kernel32[0] # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in File "ctypes.py", line 310, in __getitem__ func = _StdcallFuncPtr(name, self) AttributeError: function ordinal 0 not found @@ -159,11 +159,11 @@ >>> windll.kernel32.GetModuleHandleA() # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ValueError: Procedure probably called with not enough arguments (4 bytes missing) >>> windll.kernel32.GetModuleHandleA(0, 0) # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ValueError: Procedure probably called with too many arguments (4 bytes in excess) >>> @@ -172,13 +172,13 @@ >>> cdll.kernel32.GetModuleHandleA(None) # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ValueError: Procedure probably called with not enough arguments (4 bytes missing) >>> >>> windll.msvcrt.printf("spam") # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ValueError: Procedure probably called with too many arguments (4 bytes in excess) >>> @@ -191,7 +191,7 @@ >>> windll.kernel32.GetModuleHandleA(32) # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in WindowsError: exception: access violation reading 0x00000020 >>> @@ -354,7 +354,7 @@ 19 >>> printf("%f bottles of beer\n", 42.5) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ArgumentError: argument 2: exceptions.TypeError: Don't know how to convert parameter 2 >>> @@ -417,7 +417,7 @@ >>> printf("%d %d %d", 1, 2, 3) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ArgumentError: argument 2: exceptions.TypeError: wrong type >>> printf("%s %d %f\n", "X", 2, 3) X 2 3.000000 @@ -467,7 +467,7 @@ 'def' >>> strchr("abcdef", "def") Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ArgumentError: argument 2: exceptions.TypeError: one character string expected >>> print strchr("abcdef", "x") None @@ -493,7 +493,7 @@ 486539264 >>> GetModuleHandle("something silly") # doctest: +WINDOWS Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in File "", line 3, in ValidHandle WindowsError: [Errno 126] The specified module could not be found. >>> @@ -564,7 +564,7 @@ 0 5 >>> POINT(1, 2, 3) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ValueError: too many initializers >>> @@ -767,7 +767,7 @@ >>> PI(42) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in TypeError: expected c_long instead of int >>> PI(c_int(42)) @@ -843,7 +843,7 @@ >>> bar.values = (c_byte * 4)() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in TypeError: incompatible types, c_byte_Array_4 instance instead of LP_c_long instance >>> @@ -894,7 +894,7 @@ ... ("next", POINTER(cell))] ... Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in File "", line 2, in cell NameError: name 'cell' is not defined >>> diff -r 522adc2e082a Doc/library/unicodedata.rst --- a/Doc/library/unicodedata.rst Tue Oct 04 18:17:08 2016 +0300 +++ b/Doc/library/unicodedata.rst Wed Oct 05 15:06:24 2016 +0530 @@ -161,7 +161,7 @@ 9 >>> unicodedata.decimal(u'a') Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in ValueError: not a decimal >>> unicodedata.category(u'A') # 'L'etter, 'u'ppercase 'Lu' diff -r 522adc2e082a Doc/tutorial/classes.rst --- a/Doc/tutorial/classes.rst Tue Oct 04 18:17:08 2016 +0300 +++ b/Doc/tutorial/classes.rst Wed Oct 05 15:06:24 2016 +0530 @@ -787,7 +787,7 @@ 'c' >>> it.next() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in it.next() StopIteration