-
Notifications
You must be signed in to change notification settings - Fork 3
Use Python's LRU cache instead of custom cache implementation #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Use Python's LRU cache instead of custom cache implementation #34
Conversation
Unit test results:
|
@ralittles Does this work under Python 2.7 as well as Python 3.x? |
@mtalexan No, the I tried to use the Python 2 Do you think we could drop support for Python 2 at this point? Otherwise the code is going to require several if/else statements for version checks to make sure the right syntax gets processed. |
…al caching decorator in place but still need to figure out a nice way to use a different cache_clear() function depending on if its python2 or python3. Also, changed setup.py to allow installation of unittest dependencies as part of the regular install target, so that you don't have to download additional packages when you run unit tests. Also deleted the original handwritten cache-decorator implementation
Switched over to using Python's built-in LRU cache functions for memoization