Skip to content
Advertisement

Tag: terminology

Terminology: A user-defined function object attribute?

According to Python 2.7.12 documentation, User-defined methods: User-defined method objects may be created when getting an attribute of a class (perhaps via an instance of that class), if that attribute is a user-defined function object, an unbound user-defined method object, or a class method object. When the attribute is a user-defined method object, a new method object is only created

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 ? … ? Answer It is more or

Advertisement