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

Obsolete info in Tutorial 9.1 #41176

Closed
kjohnson mannequin opened this issue Nov 15, 2004 · 4 comments
Closed

Obsolete info in Tutorial 9.1 #41176

kjohnson mannequin opened this issue Nov 15, 2004 · 4 comments
Labels
docs Documentation in the Doc dir

Comments

@kjohnson
Copy link
Mannequin

kjohnson mannequin commented Nov 15, 2004

BPO 1067018
Nosy @rhettinger, @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 2004-11-18.06:22:10.000>
created_at = <Date 2004-11-15.22:50:42.000>
labels = ['docs']
title = 'Obsolete info in Tutorial 9.1'
updated_at = <Date 2004-11-18.06:22:10.000>
user = 'https://bugs.python.org/kjohnson'

bugs.python.org fields:

activity = <Date 2004-11-18.06:22:10.000>
actor = 'rhettinger'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2004-11-15.22:50:42.000>
creator = 'kjohnson'
dependencies = []
files = []
hgrepos = []
issue_num = 1067018
keywords = []
message_count = 4.0
messages = ['23158', '23159', '23160', '23161']
nosy_count = 4.0
nosy_names = ['rhettinger', 'terry.reedy', 'jlgijsbers', 'kjohnson']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1067018'
versions = ['Python 2.4']

@kjohnson
Copy link
Mannequin Author

kjohnson mannequin commented Nov 15, 2004

In the Tutorial, section 9.1, the second paragraph
(starting with "I also have to warn you") is obsolete -
integers and list are now instances of <type 'int'> and
<type 'list'> if I understand correctly.

For a brief discussion on c.l.python see
http://groups.google.com/groups?hl=en&lr=&c2coff=1&threadm=ad052e5c.0411150401.2b215499%40posting.google.com&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D1%26group%3Dcomp.lang.python

Kent

@kjohnson kjohnson mannequin closed this as completed Nov 15, 2004
@kjohnson kjohnson mannequin added the docs Documentation in the Doc dir label Nov 15, 2004
@kjohnson kjohnson mannequin closed this as completed Nov 15, 2004
@kjohnson kjohnson mannequin added the docs Documentation in the Doc dir label Nov 15, 2004
@jlgijsbers
Copy link
Mannequin

jlgijsbers mannequin commented Nov 16, 2004

Logged In: YES
user_id=469548

This isn't really obsolete, technically speaking. Types look
a lot more like classes since Python 2.2, but they're not
the same. I don't know whether we still want to introduction
in the tutorial, though, so I'm leaving this open for now.

@terryjreedy
Copy link
Member

Logged In: YES
user_id=593130

Instances of builtin types were always just that.  So this is 
not new.  What is new in 2.2 (I think) is that they gained 
a .__class__ attribute pointing to the type.
>>> 1 .__class__
<type 'int'>

In addition, the builtin types, including type itself, are now
subclasses of object (via their __bases__ attribute), even
though their .__class__ attributes point to type instead.

>>> issubclass(int, object)
1
>>> int.__bases__
(<type 'object'>,)
>>> int.__class__
<type 'type'>

So I think the warning, as now written, is arguably untrue,
or at least confusing rather than helpful.

@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

Zapped the useless and confusing paragraph.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants