On Wed, Nov 9, 2011 at 8:19 PM, Antoine Pitrou <solip...@pitrou.net> wrote: > On Wed, 09 Nov 2011 10:44:50 +0100 > "Martin v. Löwis" <mar...@v.loewis.de> wrote: >> I recommend reverting the change. I fail to see why quoting the name >> improves readability. > > It does if the name is "Throatwobbler Mangrove".
The readability argument doesn't really sell me, but the consistency one does: Python 3.2: >>> iter(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'int' object is not iterable >>> next(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: int object is not an iterator We generally do quote the type names in error messages, so this change is just bringing next() into line with other operations: >>> 1 + '' Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for +: 'int' and 'str' Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com