-
- Downloads
_yaml.py: Implement `get()` for `ChainMap`
Since the core Python `ChainMap.get()` implements with:
self[key] if key in self else default
The double-chain-lookup is expensive. This simple change solves that
for our ChainMap derived structure.
Signed-off-by:
Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Loading
Please register or sign in to comment