summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prep 0.6 release.0.6Tres Seaver2012-07-122-3/+3
|
* Changelog for CacheMaker.Tres Seaver2012-07-051-0/+3
|
* Tidy.Tres Seaver2012-07-051-4/+2
| | | | Drop unused re-bind of 'range'.
* Tidy.Tres Seaver2012-07-051-2/+2
|
* Allow 'clear' to take multiple names.Tres Seaver2012-07-052-9/+24
|
* Coverage for single-name clear.Tres Seaver2012-07-051-15/+28
|
* Let Python marshal args for us.Tres Seaver2012-07-051-21/+22
|
* Code clarity.Tres Seaver2012-07-051-28/+31
|
* Avoid artificial default.Tres Seaver2012-07-051-14/+12
| | | | get() returns None on a miss, which is fine for our purposes.
* Moar PEP8.Tres Seaver2012-07-051-34/+40
| | | | Docstring cleanup.
* Coverage.Tres Seaver2012-07-051-1/+1
| | | | Don't bother trying to simulate a uuid4() collision.
* Fix Python 3.2 compatibility.Tres Seaver2012-07-051-1/+1
|
* Fix Python 2.6 compatibility.Tres Seaver2012-07-051-4/+2
|
* Normalize contruction of CUT.Tres Seaver2012-07-051-16/+22
| | | | Avoid use of instance attrs on TestCases.
* PEP8: moar ws cleanup.Tres Seaver2012-07-051-20/+20
|
* PEP8: ws cleanup.Tres Seaver2012-07-051-8/+11
|
* Adding CacheMaker with(tests + docs)julien tayon2012-07-045-0/+178
| | | | Code coverage can't reach L324
* Note statistics changes.Tres Seaver2012-06-111-0/+3
|
* Pull mness-statistics branch.Tres Seaver2012-06-113-2/+67
|\
| * added cache statiticsJeremiah Ness2012-06-063-2/+67
| | | | | | | | | | | | | | - cache.lookups # number of calls to the get method - cache.hits # number of times a call to get found an object - cache.misses # number of times a call to get did not find an object - cahce.evictions # number of times a object was evicted from cache
* | Automate building Sphinx docs and testing example snippets via 'tox'.Tres Seaver2012-06-112-2/+13
| |
* | Add placeholders in empty docs directories.Tres Seaver2012-06-112-0/+0
| |
* | Add Sphinx documentation.Tres Seaver2012-06-119-36/+685
| |
* | Drop support for Python 2.5.Tres Seaver2012-06-112-1/+4
| | | | | | | | Note support for PyPy, added earlier.
* | Typo.Tres Seaver2012-06-111-1/+1
| |
* | Add 'setup.py docs' alias.Tres Seaver2012-06-113-0/+4
| | | | | | | | Installs 'Sphinx' and dependencies.
* | Add 'setup.py dev' alias.Tres Seaver2012-06-113-1/+11
|/ | | | Runs ``develop`` plus installs 'nose' and 'coverage'.
* Try working around (pip-induced?) weirdness under tox.Tres Seaver2012-03-241-1/+3
|
* Add tox support.Tres Seaver2012-03-242-36/+15
|
* Note bugfix.Tres Seaver2012-03-241-0/+6
|
* Use lock-as-context manager to avoid race condition (issue #10).Tres Seaver2012-03-241-17/+5
|
* Prep 0.5 release.0.5Tres Seaver2012-03-242-4/+3
|
* add trove classifiers, bump to 0.5devChris McDonough2012-03-231-2/+9
|
* dont test under jython; this is just a testing raceChris McDonough2012-03-231-4/+15
|
* prevent py32 from whining about assert_Chris McDonough2012-03-231-23/+24
|
* ignore all env*/Chris McDonough2012-03-231-1/+1
|
* Changelog, note post-0.4 stuff.Tres Seaver2012-03-232-1/+22
|
* Don't encourage running a unit test module as a script.Tres Seaver2012-03-231-4/+0
| | | | Instead, use 'setup.py test' or nosetests.
* Reach full statement coverage with noseStefan Nordhausen2012-01-241-1/+1
| | | | | | - chmod test.py from 755 to 644. Otherwise nosetests would not touch it and hence not reach much coverage. - Do not expect coverage for 'if __name__ == "__main__"...'
* Make test cases run in Python <2.7 and 3.x againStefan Nordhausen2012-01-191-22/+26
| | | | | - Remove usage of xrange() and iteritems() to make Python 3.x happy. - Remove usage of assertGreater/assertLess to make Python <2.7 happy.
* Add "expiry" feature to the decoratorStefan Nordhausen2012-01-182-6/+43
| | | | | | - Decorator now accepts "timeout" parameter. - Unit tests check that decorator with timeout really forgets. - Fix incorrect import in ExpiringLRUCacheTests._getTargetClass().
* Add test class ExpiringLRUCacheTests to test expiry featuresStefan Nordhausen2012-01-181-2/+190
|
* Add many more test cases and a cache-consistency check.Stefan Nordhausen2012-01-171-0/+199
|
* Add ExpiringLRUCache class.Stefan Nordhausen2012-01-171-1/+129
| | | | This is a copy & paste of LRUCache with expiry features added.
* - Rename _marker to _MARKER to make pylint happy.Stefan Nordhausen2012-01-161-9/+17
| | | | | | - Remove _marker parameter from put() since it was unused. - Fix error message in ValueError. - Add docstrings.
* If self.invalidate deletes an entry at just the wrong time, the "delStefan Nordhausen2012-01-161-25/+49
| | | | | data[oldkey]" in put() could raise KeyError. Using pop() prevents this and has the side effect that the "if... :" is not needed any more.
* __init__.py:Stefan Nordhausen2012-01-132-26/+28
| | | | | | | | | | | - Split self.clock into self.clock_refs and self.clock_keys - Define variables in __init__ to make pylint happy - self.maxpos now declared in __init__(), since clear() cannot change it. tests.py: - Adapt to the splitting of self.clock into self.clock_refs and self.clock_keys.
* __init__.py:Stefan Nordhausen2012-01-132-15/+41
| | | | | | | | | | | | | - put() now checks if we already have the given key in cache. This prevents overwriting other existing items when put() on same item is called repeatedly. - Remove the "end" variable. It never terminated the loop, anyway, because the item at this position always had res==True. tests.py: - Adapt test case to accept the slightly changed eviction strategy. - Make the test runnable from the command line. - Add newlines for structuring, remove unneeded whitespace.
* get() does not set self.hand anymore.Stefan Nordhausen2012-01-131-4/+0
|
* prep for 0.40.4Chris McDonough2011-09-041-1/+1
|