yurisich
yurisich

Reputation: 7119

Why isn't the "object" parent class for new-style classes in Python2.x written as "Object"?

Maybe I have the wrong impression, but wouldn't the parent class of a class object be a class? If so, why didn't the authors of Python follow good style convention and capitalize the object class to Object to denote it as a class object? Is it a class at all?

Upvotes: 2

Views: 129

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798804

It follows the convention of built-in types (str, int, float, complex, file, type, etc.) not having the initial letter capitalized.

Upvotes: 9

Related Questions