Python Macros

Alex Martelli aleaxit at yahoo.com
Wed Oct 6 10:34:45 CEST 2004


gabriele renzi <rff_rff at remove-yahoo.it> wrote:

> Jacek Generowicz ha scritto:
> 
> > _Most_ object-oriented languages support object orientation via the
> > message passing paradigm. Python included.
> 
> I disagree slightly.
> I think the difference is really subtle, but there are some dict-based
> languages like python and some message-based like smalltalk.
> Actually I think the discriminating is having a doesNotUnderstand:-like
> facility versus a __getattr__ one.

Please explain how this syntax choice "discriminates" anything
whatsoever?  __getattr__ is called when some message isn't understood by
the "normal" mechanisms of the object, too.


Alex



More information about the Python-list mailing list