Difference between type and class

Nikolaus Rath Nikolaus at rath.org
Fri Aug 1 08:06:04 CEST 2008

Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
> So, to the Original Poster:
> In Python, new-style classes and types are the same, but it is
> traditional to refer to customer objects as "class" and built-in
> objects as "types". Old-style classes are different, but you are
> discouraged from using old-style classes unless you have a specific
> reason for needing them (e.g. backwards compatibility).

I see. Thanks a lot for the explanation.



 »It is not worth an intelligent man's time to be in the majority.
  By definition, there are already enough people to do that.«
                                                         -J.H. Hardy

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

More information about the Python-list mailing list