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
These need gardening but I'll just put them here to keep track.
defget_any(dict, *keys, default=None):
"""Cascading get, for those times you do `dict.get(key1, dict.get(key2, ...))"""forkeyinkeys:
ifkeyindict:
returndict[key]
returndefault
But I had another take on get_any() here, so need to resolve that. #266
Another one is a multi-partition, where predicates cascade:
These need gardening but I'll just put them here to keep track.
But I had another take on
get_any()
here, so need to resolve that.#266
Another one is a multi-partition, where predicates cascade:
(this could be an extension of iterutils.partition to accept any number of predicates instead of just one)
The text was updated successfully, but these errors were encountered: