Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
terryjreedy opened this issue Apr 7, 2008 · 4 comments
Closed

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

terryjreedy opened this issue Apr 7, 2008 · 4 comments
Labels
easy extension-modules C modules in the Modules dir interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@terryjreedy
Copy link
Member

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']

@terryjreedy
Copy link
Member Author

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

@terryjreedy terryjreedy added extension-modules C modules in the Modules dir interpreter-core (Objects, Python, Grammar, and Parser dirs) easy type-bug An unexpected behavior, bug, or error labels Apr 7, 2008
@loewis
Copy link
Mannequin

loewis mannequin commented Apr 7, 2008

So which one should it be: type or class?

@terryjreedy
Copy link
Member Author

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

@loewis
Copy link
Mannequin

loewis mannequin commented Apr 7, 2008

This is now fixed in r62203.

@loewis loewis mannequin closed this as completed Apr 7, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy extension-modules C modules in the Modules dir interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant