[Python-Dev] type vs. class terminology

Eli Bendersky eliben at gmail.com
Fri Nov 30 05:55:54 CET 2012

On Sun, Nov 25, 2012 at 9:01 PM, Chris Jerdonek <chris.jerdonek at gmail.com>wrote:

> I would like to know when we should use "class" in the Python 3
> documentation, and when we should use "type."  Are these terms
> synonymous in Python 3, and do we have a preference for which to use
> and when?
> I'm sure this has been discussed before.  But if this terminology
> issue has already been resolved, the resolution doesn't seem to be
> reflected in the docs.  For example, the glossary entries for type and
> class don't reference each other.

Good question,

[shameless plug follows, I post this because I truly believe it's very
relevant to the discussion]

I had the same doubts some months ago, which led to writing this article
(relevant to Python 3):

It examines the class vs. type issue, as well as object vs. instance
And this diagram can also be useful to understand how similar built-in and
user-defined types are in Python 3:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20121129/bf5d19a4/attachment.html>

More information about the Python-Dev mailing list