I have a class with class and instance attributes with the same name. Is there a way to return their respected value based on the context they are accessed?
Example:
class A:
b = 'test'
@property
def b(self):
return 'not test'
Desired Results:
>>> A().b
'not test'
>>> A.b
'test'
Actual Results:
>>> A().b
'not test'
>>> A.b
<property object at 0x03ADC640>