I have my unique class I created and i wish to control the output of some flow..e.g:
obj = MyObject()
print obj
so instead of what python does, I want to alter the output. how do I do such a thing?
I have my unique class I created and i wish to control the output of some flow..e.g:
obj = MyObject()
print obj
so instead of what python does, I want to alter the output. how do I do such a thing?