Python : terminology 'class' VS 'type'
问题 Just a simple question : when should I use the term 'class', and when should I use the term 'type' in Python ? is 'class' only for user-defined types, and 'type' for built-in types ? or now that everything is a type ... should I use always 'type' even for user-defined classes ? ... ? 回答1: 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