Make cached_property thread-safe and alias threaded_cached_property to it.
authorGeorge Sakkis <george.sakkis@gmail.com>
Sun, 19 Apr 2015 20:57:59 +0000 (23:57 +0300)
committerGeorge Sakkis <george.sakkis@gmail.com>
Sun, 19 Apr 2015 21:00:49 +0000 (00:00 +0300)
commitdf46e7da061f0514101dd725217974fa0bfe7011
tree6c7a1b8b1f1de32cb31b0b0a1822c5e899437720
parent6dfcdece430112596b7528a311d316b9723abac0
Make cached_property thread-safe and alias threaded_cached_property to it.

dict.setdefault() is atomic since three years ago; see http://bugs.python.org/issue13521
cached_property.py
tests/test_cached_property.py
tests/test_threaded_cached_property.py [deleted file]