Hi !

Also :


    classname = "Dog"
    exec("b="+classname+"()")
    b.bark()

or

    classname = "Dog"
    exec("cl="+classname)
    b=cl()
    b.bark()



Michel Claveau




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

Reply via email to