On Tue, May 15, 2018 at 1:10 PM, Tobiah <t...@tobiah.org> wrote:
> Why is it len(object) instead of object.len?
>
> Why is it getattr(object, item) rather then object.getattr(item)?

http://effbot.org/pyfaq/why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list.htm
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to