syntax oddities

Ian Kelly ian.g.kelly at gmail.com
Wed May 16 12:07:07 EDT 2018


On Tue, May 15, 2018, 6:00 PM Steven D'Aprano <
steve+comp.lang.python at pearwood.info> wrote:

> On Tue, 15 May 2018 12:10:07 -0700, Tobiah wrote:
>
> > Why is it len(object) instead of object.len?
>
> Because we're not serfs in the Kingdom of Nouns:
>
> https://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html


No, then it would be written LengthGetter(object).getLength()



More information about the Python-list mailing list