Newbie Q: dynamically assigning object attribute
Dylan Moreland
dylan.moreland at gmail.com
Thu Feb 9 21:08:04 EST 2006
More information about the Python-list mailing list
Thu Feb 9 21:08:04 EST 2006
- Previous message (by thread): Simple Tkinter app works in Linux, not in Windows
- Next message (by thread): Newbie Q: dynamically assigning object attribute
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
No problem. There are, in fact, ugly class-based methods of doing this. You could assign to an instance's __dict__ dictionary, or -- if the class is a new-style class -- you can call the __setattr__(self, name, value) method.
- Previous message (by thread): Simple Tkinter app works in Linux, not in Windows
- Next message (by thread): Newbie Q: dynamically assigning object attribute
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list