An "Object" class?

Chris Angelico rosuav at gmail.com
Tue Aug 27 14:34:26 EDT 2019


On Wed, Aug 28, 2019 at 4:21 AM Cristian Cocos <cristi at ieee.org> wrote:
>
> Thank you! What would be the names of the *class *class, and of the *function
> *class please?

The "class" class is called "type" - or rather, when you use the
"class" keyword, you are creating a subclass of "type". There is no
built-in name for the type of functions, and you usually don't care;
they're simply callable objects, and any object can be made callable
by giving it an appropriate method.

ChrisA



More information about the Python-list mailing list