Skip to content

Instantly share code, notes, and snippets.

@nisxiya
nisxiya / RemoveDupliations
Last active August 1, 2016 13:02
remove all the duplicated items from a list. These items should contain primitive elements (int, str, float, etc) and all other kinds of objects.
#!/usr/bin/python
#coding=utf-8
class Ice:
def __init__(self, name):
self.prop = 'water'
self.hardness = 9
self.name = name
class RmDup: