[Python-3000] Types and classes

"Martin v. Löwis" martin at v.loewis.de
Thu Apr 3 09:58:25 CEST 2008


> All I really mean to fix is to standardize the terminology, especially
> in repr().

So you don't want to be called a wimp anymore ?-)

------------------------------------------------------------------------
r23331 | gvanrossum | 2001-09-25 05:56:29 +0200 (Di, 25 Sep 2001) | 5 lines

Change repr() of a new-style class to say <class 'ClassName'> rather
than <type 'ClassName'>.  Exception: if it's a built-in type or an
extension type, continue to call it <type 'ClassName>.  Call me a
wimp, but I don't want to break more user code than necessary.

------------------------------------------------------------------------

Regards,
Martin


More information about the Python-3000 mailing list