lis.py
class mylist:
def __init__(self,l):
self.data = l;
def __add__(self,l):
self.data = self.data + l
def __repr__(self):
return self.data
main.py
from lis import*
x = mylist([1,2,3])
x = x + [4,5]
print x
Why is it printing None? What do I did wrong,Thanks.