Bojan Mihelac wrote:
I guess A class not yet exists in line 4. Is it possible to achive
adding dynamic attributes without using exec?

Correct, the class doesn't exist until the end of the class body. You can either do it outside the class definition or you can use a metaclass.

Christian

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to