You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cache class uses Java Map-style put(), get(), remove() and contains(). Which is fine, but we should also offer Python-style syntactic sugar, so that we can do:
cache['key'] = 'value'
print cache['key']
if 'key' in cache:
print 'Key exists!'
for e in cache:
print e
etc. Have a look at the implementation of a Python map for more details, or one of the many custom map-like classes available for Python.
This is usually implemented by defining internal methods, such as:
The Cache class uses Java Map-style put(), get(), remove() and contains(). Which is fine, but we should also offer Python-style syntactic sugar, so that we can do:
etc. Have a look at the implementation of a Python map for more details, or one of the many custom map-like classes available for Python.
This is usually implemented by defining internal methods, such as:
etc.
The text was updated successfully, but these errors were encountered: