[Python-Dev] new LRU cache API in Py3.2 (original) (raw)
Éric Araujo merwok at netwok.org
Sat Sep 4 11:42:08 CEST 2010
- Previous message: [Python-Dev] new LRU cache API in Py3.2
- Next message: [Python-Dev] new LRU cache API in Py3.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What about adding an intermediate namespace called "cache", so that the new operations are available like this:
print getphonenumber.cache.hits getphonenumber.cache.clear() ? It's just a little more overhead, but I think it reads quite a bit better.
Or we could use pseudo-namespacing: get_phone_number.cache_hits, get_phone_number.clear_cache()
Regards
- Previous message: [Python-Dev] new LRU cache API in Py3.2
- Next message: [Python-Dev] new LRU cache API in Py3.2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]