Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for weakreflist, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size weakreflist-0.2.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page