How to white toString function, or better make Python stringify object? Here the simple class:
class Point(object):
def __init__(self, x, y):
self.X = float(x)
self.Y = float(y)
Next code
print Point(1.1,22)
Gives
<__main__.Point object at 0x0000000002E7A588>
I expect to achieve something like outputs standard object (time.struct_time(tm_year=2013, tm_mon=7, tm_mday=10, tm_hour=2, tm_min=52, tm_sec=49, tm_wday=2, tm_yday=191, tm_isdst=-1),)
or Point(x=1.1,y=22)
What is proper function name? Should I write it by myself?