Can we create and edit instance of object class in Python? I have written following code:
req=object()
setattr(req,'member1','value1')
But it shows an error as
AttributeError: 'object' object has no attribute
Am I missing something?
Can we create and edit instance of object class in Python? I have written following code:
req=object()
setattr(req,'member1','value1')
But it shows an error as
AttributeError: 'object' object has no attribute
Am I missing something?