Skip to content

Change 'type' to 'class' in repr/str(builtin-class) #46817

Closed

Description

@terryjreedy
BPO 2565
Nosy @loewis, @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-04-07.05:44:14.224>
created_at = <Date 2008-04-07.00:30:01.329>
labels = ['extension-modules', 'interpreter-core', 'type-bug', 'easy']
title = "Change 'type' to 'class' in repr/str(builtin-class)"
updated_at = <Date 2008-04-07.05:44:14.223>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2008-04-07.05:44:14.223>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = <Date 2008-04-07.05:44:14.224>
closer = 'loewis'
components = ['Extension Modules', 'Interpreter Core']
creation = <Date 2008-04-07.00:30:01.329>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 2565
keywords = ['easy']
message_count = 4.0
messages = ['65058', '65062', '65064', '65066']
nosy_count = 2.0
nosy_names = ['loewis', 'terry.reedy']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue2565'
versions = ['Python 3.0']

Activity

  1. terryjreedy commented on Apr 7, 2008

    @terryjreedy
    MemberAuthor

    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. :-)

  2. added
    extension-modules
    interpreter-core
    type-bug
    on Apr 7, 2008
  3. loewis commented on Apr 7, 2008

    loewismannequin
    Mannequin

    So which one should it be: type or class?

  4. terryjreedy commented on Apr 7, 2008

    @terryjreedy
    MemberAuthor

    Finish the change from 'type' to 'class'
    (See carefully written title ;-)

  5. loewis commented on Apr 7, 2008

    loewismannequin
    Mannequin

    This is now fixed in r62203.

  6. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    easyextension-modulesinterpreter-coretype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions