Skip to content

gyx1000/AwareList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AwareList

AwareList is a simple python class able to keep track of added and removed elements.

Use

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

Version

0.0.1

Todo's

  • Write setup.py
  • Implement Travis-CI
  • Add Code Comments

License

MIT

About

Python List that can return added and removed elements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages