[issue2565] Change 'type' to 'class' in repr/str(builtin-class)

Terry J. Reedy report at bugs.python.org
Mon Apr 7 02:30:04 CEST 2008


New submission from Terry J. Reedy <tjreedy at udel.edu>:

>From py3 devel list today:
------------------------------------------------------------------------
>  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>.
------------------------------------------------------------------------
Well, if we're going to break user code, 3.0 is the time to do it. :-)

----------
components: Extension Modules, Interpreter Core
keywords: easy
messages: 65058
nosy: tjreedy
severity: normal
status: open
title: Change 'type' to 'class' in repr/str(builtin-class)
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2565>
__________________________________


More information about the Python-bugs-list mailing list