[Python-Dev] Issue10403 - using 'attributes' instead of members in documentation (original) (raw)
Bill Janssen janssen at parc.com
Mon Jun 27 17:51:48 CEST 2011
- Previous message: [Python-Dev] Issue10403 - using 'attributes' instead of members in documentation
- Next message: [Python-Dev] Issue10403 - using 'attributes' instead of members in documentation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan <ncoghlan at gmail.com> wrote:
And no, the fact that methods can be treated as attributes is not a minor detail. It is fundamental to Python's object model that methods are not a special case of attribute access. All attributes work the same way, it is just the way functions implement the descriptor protocol that makes instance methods behave the way they do.
Well put, Nick. This paragraph is a good thing to read a couple of times.
Bill
- Previous message: [Python-Dev] Issue10403 - using 'attributes' instead of members in documentation
- Next message: [Python-Dev] Issue10403 - using 'attributes' instead of members in documentation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]