diff -r 9d9c2b4850fc Doc/howto/argparse.rst --- a/Doc/howto/argparse.rst Fri Dec 27 14:06:15 2013 -0500 +++ b/Doc/howto/argparse.rst Sat Dec 28 02:35:57 2013 +0400 @@ -547,7 +547,7 @@ Traceback (most recent call last): File "prog.py", line 11, in if args.verbosity >= 2: - TypeError: unorderable types: NoneType() >= int() + TypeError: unorderable types: 'NoneType' >= 'int' * First output went well, and fixes the bug we had before. That is, we want any value >= 2 to be as verbose as possible. diff -r 9d9c2b4850fc Doc/library/enum.rst --- a/Doc/library/enum.rst Fri Dec 27 14:06:15 2013 -0500 +++ b/Doc/library/enum.rst Sat Dec 28 02:35:57 2013 +0400 @@ -240,7 +240,7 @@ >>> Color.red < Color.blue Traceback (most recent call last): File "", line 1, in - TypeError: unorderable types: Color() < Color() + TypeError: unorderable types: 'Color' < 'Color' Equality comparisons are defined though:: diff -r 9d9c2b4850fc Doc/library/pathlib.rst --- a/Doc/library/pathlib.rst Fri Dec 27 14:06:15 2013 -0500 +++ b/Doc/library/pathlib.rst Sat Dec 28 02:35:57 2013 +0400 @@ -195,7 +195,7 @@ >>> PureWindowsPath('foo') < PurePosixPath('foo') Traceback (most recent call last): File "", line 1, in - TypeError: unorderable types: PureWindowsPath() < PurePosixPath() + TypeError: unorderable types: 'PureWindowsPath' < 'PurePosixPath' Operators diff -r 9d9c2b4850fc Objects/object.c --- a/Objects/object.c Fri Dec 27 14:06:15 2013 -0500 +++ b/Objects/object.c Sat Dec 28 02:35:57 2013 +0400 @@ -672,7 +672,7 @@ default: /* XXX Special-case None so it doesn't show as NoneType() */ PyErr_Format(PyExc_TypeError, - "unorderable types: %.100s() %s %.100s()", + "unorderable types: '%.100s' %s '%.100s'", v->ob_type->tp_name, opstrings[op], w->ob_type->tp_name);