summaryrefslogtreecommitdiff
path: root/docs/internals/contributing/writing-code/coding-style.txt
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2020-12-14 10:42:22 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-12-17 09:57:21 +0100
commitbb64b99b78a579cb2f6178011a4cf9366e634438 (patch)
tree7c20092227eb3038ba7ca664112064bb16ed516a /docs/internals/contributing/writing-code/coding-style.txt
parentd23dad5778b3610a5f870b4757ba628780924dd1 (diff)
Fixed #29867 -- Added support for storing None value in caches.
Many of the cache operations make use of the default argument to the .get() operation to determine whether the key was found in the cache. The default value of the default argument is None, so this results in these operations assuming that None is not stored in the cache when it actually is. Adding a sentinel object solves this issue. Unfortunately the unmaintained python-memcached library does not support a default argument to .get(), so the previous behavior is preserved for the deprecated MemcachedCache backend.
Diffstat (limited to 'docs/internals/contributing/writing-code/coding-style.txt')
0 files changed, 0 insertions, 0 deletions