Dictionaries and dot notation
gagsl-py2 at yahoo.com.ar
Mon Apr 23 09:55:11 CEST 2007
En Mon, 23 Apr 2007 03:14:32 -0300, Martin Drautzburg
<Martin.Drautzburg at web.de> escribió:
> I did not notice that I can use a single class (or a module) for
> all my datastructures, because I can "plug in" new attributes into the
> instance without the class knowing about them.
> I was mistaken to believe that I had to know about attributes at the
> time of class creation. But your expample does not require that. Should
> have read this more carefully.
Welcome to Python and its dynamic nature!
More information about the Python-list