Python object()
Python object() class
The object class in Python is a base for all classes. It returns a new featureless object.
Syntax
class object
Parameter
NA
Return
It returns a new featureless object.
Example 1
# Python program explaining # the object() class val = object() print(dir(val))
Output
['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']