Python : terminology ‘class’ VS ‘type’

It is more or less historical: they used to be different a long time ago, which has no practical implications anymore.

Edit: I use “class” when referring to concrete implementations and “type” in a more informal way, when speaking about high level data structures, application arcitecture etc. In my thinking a type is a more general thing, I don’t think of every class as a distinct type.

Also, when I use metaclasses (very rarely) I speak of types.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)