skip to navigation
skip to content

Not Logged In

weakreflist 0.2

A WeakList class for storing objects using weak references in a list.

usage

see tests:

# cd weakreflist
# nosetests --with-spec --spec-color ./

Weakref list
- if a weakref already stored it reuse it
- it can remove a value
- it is instance of list
- it knows if it contains an object
- it returns the index of a value
- it returns value and not a ref
- it store a weakref ref
- it support addition
- it support iteration
- when all object instance are deleted all ref in list are deleted

----------------------------------------------------------------------
Ran 10 tests in 0.004s

OK
 
File Type Py Version Uploaded on Size
weakreflist-0.2.tar.gz (md5) Source 2013-02-10 2KB
  • Downloads (All Versions):
  • 9 downloads in the last day
  • 33 downloads in the last week
  • 203 downloads in the last month