Python dynamic attribute creation
Michael Torrie
torriem at gmail.com
Mon Jun 28 15:52:31 EDT 2010
On 06/27/2010 11:58 PM, Stephen Hansen wrote:
> To say you can't really know "much about" OOP without knowing "much
> about" Smalltalk seems basically, well, wrong.
True. But you can't really criticize a language's implementation of OOP
without a good understanding of the "pure" OO language. For example, in
Smalltalk If/Then statements are actually methods of Boolean objects.
>From a certain point of view that's extremely appealing (consistent,
anyway). Almost functional in nature. They are not implemented this
way in Python, so that's one thing you could argue is not OO about Python.
More information about the Python-list
mailing list