]> granicus.if.org Git - python/commit
Change repr() of a new-style class to say <class 'ClassName'> rather
authorGuido van Rossum <guido@python.org>
Tue, 25 Sep 2001 03:56:29 +0000 (03:56 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 25 Sep 2001 03:56:29 +0000 (03:56 +0000)
commita4cb78874ce31bef1a4c05bd5bace387bc5bb677
tree693cfdc4e8d4fc477c10a6a9dd59cbe216b99e62
parent5c294fb0e634afc4807ca83032ace356512c97dc
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.
Lib/test/test_descrtut.py
Lib/test/test_repr.py
Objects/typeobject.c