Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class mylist(list):
- def __add__(self, other):
- new = mylist(self)
- new += other
- return new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement