[Python-Dev] PEP 550 v4 (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Tue Aug 29 10:22:35 EDT 2017


On 29 August 2017 at 23:18, Yury Selivanov <yselivanov.ml at gmail.com> wrote:

On Tue, Aug 29, 2017 at 5:01 AM, Nick Coghlan <ncoghlan at gmail.com> wrote: [..]

P.S. And I say that as a reader who correctly guessed why you had changed the method name in the current iteration of the proposal. I'm sympathetic to those reasons, but I think sticking with the conventional API will make this one easier to learn and use :) Yeah, I agree. We'll switch lookup -> get in the next iteration. Guido's parallel with getattr/setattr/delattr is also useful. getattr can also lookup the attribute in base classes, but we still call it "get".

True, in many ways attribute inheritance is Python's original ChainMap implementation :)

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list