<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 25, 2012 at 9:01 PM, Chris Jerdonek <span dir="ltr"><<a href="mailto:chris.jerdonek@gmail.com" target="_blank">chris.jerdonek@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I would like to know when we should use "class" in the Python 3<br>
documentation, and when we should use "type." Are these terms<br>
synonymous in Python 3, and do we have a preference for which to use<br>
and when?<br>
<br>
I'm sure this has been discussed before. But if this terminology<br>
issue has already been resolved, the resolution doesn't seem to be<br>
reflected in the docs. For example, the glossary entries for type and<br>
class don't reference each other.<br></blockquote></div><br>Good question,<br><br>[shameless plug follows, I post this because I truly believe it's very relevant to the discussion]<br><br>I had the same doubts some months ago, which led to writing this article (relevant to Python 3):<br>
<a href="http://eli.thegreenplace.net/2012/03/30/python-objects-types-classes-and-instances-a-glossary/">http://eli.thegreenplace.net/2012/03/30/python-objects-types-classes-and-instances-a-glossary/</a><br><br>It examines the class vs. type issue, as well as object vs. instance<br>
And this diagram can also be useful to understand how similar built-in and user-defined types are in Python 3:<br><a href="http://eli.thegreenplace.net/2012/04/03/the-fundamental-types-of-python-a-diagram/">http://eli.thegreenplace.net/2012/04/03/the-fundamental-types-of-python-a-diagram/</a><br>
<br>Eli<br><br><br><br></div></div>