object()
Built-in FunctionPython 2.0+Advanced
Base class for all Python classes; returns a featureless object
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
Learn by Difficulty
Quick Example
python
o = object() print(type(o)) print(dir(o)[:5])
object() is a built-in function that base class for all python classes; returns a featureless object.
Try in PlaygroundTags
builtinfunctioncoreoopbase-classdatatype
Related Items
type()
Built-in Function
Returns the type of an object, or creates a new type dynamically
class
Keyword
Defines a new class (blueprint for creating objects)
isinstance()
Built-in Function
Returns True if an object is an instance of a given class or tuple of classes
__init__
Dunder Method
Constructor; called when a new instance is created to initialize its attributes
super()
Built-in Function
Returns a proxy object that delegates calls to a parent class