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.

Source Distribution

weakreflist-0.2.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page