Guido van Rossum wrote: > FWIW, for types that implement them the same, I'd like to see them > return something from which the type is obvious, i.e. repr()-like. > Just yesterday I helped someone debug an AttributeError where he was > convinced that an object was a string because its repr() looked like a > string; but it was a dbapi DateTime object (don't recall which > implementation).
Maybe this should go in PEP 8. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com