AwareList is a simple python class able to keep track of added and removed elements.
Initialisation:
aw_list = AwareList(["Element1", "Element2"])
Work like a normal list:
aw_list += ["New element"]
aw_list.append("New append")
aw_list.pop()
aw_list.remove("Element1")
aw_list.extend(["Extend 1", "Extend 2"])
aw_list.insert(2, "New Insert")
aw_list[0:1] = ["Element 1", "Element 2"]
del aw_list[2]
Access added and removed lists:
aw_list.added
aw_list.removed
0.0.1
- Write setup.py
- Implement Travis-CI
- Add Code Comments
MIT