[issue42359] tutorial: list is a class

2020-11-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I think the current wording is fine.  After the type/class unification we tend 
to use the words "type" and "class" almost interchangeably.  For builtins, we 
still tend to say type though.

The language itself tends to mix the terms as well:

>>> class A:
   pass

>>> type(A)

>>> type(list)


--
nosy: +rhettinger
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42359] tutorial: list is a class

2020-11-14 Thread Andy Harrington


New submission from Andy Harrington :

Documentation in Tutorial section 9.3.3 seems to be stuck in Python 2:

"In Python, the term method is not unique to class instances: other object 
types can have methods as well. For example, list objects have methods called 
append, insert, remove, sort, and so on."

In Python 3 built-in types are derived from Object, so list is now a class, 
right?

--
assignee: docs@python
components: Documentation
messages: 380997
nosy: andyharrington, docs@python
priority: normal
severity: normal
status: open
title: tutorial:  list is a class
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com