[Python-Dev] PEP 550 v4 (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sat Aug 26 16:23:47 EDT 2017
- Previous message (by thread): [Python-Dev] PEP 550 v4
- Next message (by thread): [Python-Dev] PEP 550 v4
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 26 Aug 2017 13:23:00 -0400 Yury Selivanov <yselivanov.ml at gmail.com> wrote:
> > A good point; however, ChainMap, which behaves similarly as far as lookup > goes, uses "get" and does not have a "lookup" method. I think we lose more > than we gain by changing that method name.
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()" better than "lookup()".
Regards
Antoine.
- Previous message (by thread): [Python-Dev] PEP 550 v4
- Next message (by thread): [Python-Dev] PEP 550 v4
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]