ChainMap
is constrained to be a Mapping-like object, but I get your
point. Let's see what others say about the "lookup()". It is kind of
an experiment to try a name and see if it fits.
I like "get" more. ;-)
Best,
Sven
PS:
This might be a result of still leaning towards attribute access
despite the discussion you referenced.
I still don't think complicating and reinventing terminology (which
basically results in API names) buys us much.
And I am still with Ethan, a context stack is just a ChainMap.
Renaming basic methods won't hide that fact. That's my only
criticism of the PEP. The rest is fine and useful.