Hello,
is there a assignement operator, that i can overwrite?
class MyInt:
def __init__(self, val):
assert(isinstan ce(val, int))
self._val = val
a = MyInt(10)
# Here i need to overwrite the assignement operator
a = 12
Thanks
Alexander
is there a assignement operator, that i can overwrite?
class MyInt:
def __init__(self, val):
assert(isinstan ce(val, int))
self._val = val
a = MyInt(10)
# Here i need to overwrite the assignement operator
a = 12
Thanks
Alexander
Comment