diff -r a0b9c4f98573 Doc/extending/newtypes.rst --- a/Doc/extending/newtypes.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/extending/newtypes.rst Tue Oct 04 13:03:49 2016 +0530 @@ -135,7 +135,7 @@ >>> "" + noddy.new_noddy() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, TypeError: cannot add type "noddy.Noddy" to string Note that the name is a dotted name that includes both the module name and the diff -r a0b9c4f98573 Doc/howto/functional.rst --- a/Doc/howto/functional.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/howto/functional.rst Tue Oct 04 13:03:49 2016 +0530 @@ -207,7 +207,7 @@ 3 >>> it.next() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, StopIteration >>> @@ -477,7 +477,7 @@ 2 >>> gen.next() Traceback (most recent call last): - File "stdin", line 1, in ? + File "stdin", line 1, 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, print it.next() StopIteration diff -r a0b9c4f98573 Doc/library/doctest.rst --- a/Doc/library/doctest.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/library/doctest.rst Tue Oct 04 13:03:49 2016 +0530 @@ -425,7 +425,7 @@ >>> [1, 2, 3].remove(42) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, ValueError: list.remove(x): x not in list That doctest succeeds if :exc:`ValueError` is raised, with the ``list.remove(x): @@ -449,7 +449,7 @@ >>> raise ValueError('multi\n line\ndetail') Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, ValueError: multi line detail @@ -607,7 +607,7 @@ >>> (1, 2)[3] = 'moo' Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, TypeError: object doesn't support item assignment passes under Python 2.3 and later Python versions with the flag specified, diff -r a0b9c4f98573 Doc/library/fpectl.rst --- a/Doc/library/fpectl.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/library/fpectl.rst Tue Oct 04 13:03:49 2016 +0530 @@ -88,7 +88,7 @@ >>> import math >>> math.exp(1000) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, FloatingPointError: in math_1 diff -r a0b9c4f98573 Doc/library/pdb.rst --- a/Doc/library/pdb.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/library/pdb.rst Tue Oct 04 13:03:49 2016 +0530 @@ -70,7 +70,7 @@ >>> import mymodule >>> mymodule.test() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, File "./mymodule.py", line 4, in test test2() File "./mymodule.py", line 3, in test2 diff -r a0b9c4f98573 Doc/library/unicodedata.rst --- a/Doc/library/unicodedata.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/library/unicodedata.rst Tue Oct 04 13:03:49 2016 +0530 @@ -161,7 +161,7 @@ 9 >>> unicodedata.decimal(u'a') Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, ValueError: not a decimal >>> unicodedata.category(u'A') # 'L'etter, 'u'ppercase 'Lu' diff -r a0b9c4f98573 Doc/reference/expressions.rst --- a/Doc/reference/expressions.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/reference/expressions.rst Tue Oct 04 13:03:49 2016 +0530 @@ -767,7 +767,7 @@ 2 1 >>> f(a=1, *(2,)) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, TypeError: f() got multiple values for keyword argument 'a' >>> f(1, *(2,)) 1 2 diff -r a0b9c4f98573 Doc/tutorial/classes.rst --- a/Doc/tutorial/classes.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/tutorial/classes.rst Tue Oct 04 13:03:49 2016 +0530 @@ -787,7 +787,7 @@ 'c' >>> it.next() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, it.next() StopIteration diff -r a0b9c4f98573 Doc/tutorial/controlflow.rst --- a/Doc/tutorial/controlflow.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/tutorial/controlflow.rst Tue Oct 04 13:03:49 2016 +0530 @@ -444,7 +444,7 @@ ... >>> function(0, a=0) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, TypeError: function() got multiple values for keyword argument 'a' When a final formal parameter of the form ``**name`` is present, it receives a diff -r a0b9c4f98573 Doc/tutorial/inputoutput.rst --- a/Doc/tutorial/inputoutput.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/tutorial/inputoutput.rst Tue Oct 04 13:03:49 2016 +0530 @@ -340,7 +340,7 @@ >>> f.close() >>> f.read() Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, ValueError: I/O operation on closed file It is good practice to use the :keyword:`with` keyword when dealing with file diff -r a0b9c4f98573 Doc/tutorial/introduction.rst --- a/Doc/tutorial/introduction.rst Sun Oct 02 21:16:28 2016 +0300 +++ b/Doc/tutorial/introduction.rst Tue Oct 04 13:03:49 2016 +0530 @@ -445,7 +445,7 @@ u'\xe4\xf6\xfc' >>> str(u"äöü") Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) To convert a Unicode string into an 8-bit string using a specific encoding,