4 ms·
> class fooclass: ... || class Fooclass(object): ... Is this a joke? No... it is generally recommended that class names are capitalized, and any classes you c
by BrandonM 18y ago
> class fooclass: ... || class Fooclass(object): ...
Is this a joke?
No... it is generally recommended that class names are capitalized, and any classes you create are supposed to inherit from object. This mainly comes into effect when using super().
In Python 3K, I'm pretty sure that all classes will inherit from object without having to explicitly say it.
- Erwin 18y agoMore importantly property getters will silently do nothing in old-style classes and just let the attribute setting through without calling the setter, while getters work fine.