syntax oddities

Serhiy Storchaka storchaka at gmail.com
Tue May 15 15:34:09 EDT 2018


15.05.18 22:10, Tobiah пише:
> Why is it len(object) instead of object.len?

Because the first form looked better to Guido van Rossum.

> Why is it getattr(object, item) rather then object.getattr(item)?

How do you get the 'getattr' attribute then?




More information about the Python-list mailing list