I know this is not the right place for asking about python, but it's a
simple question.
I need to load an object given in a string. Example:

#I have a class called foo
class foo:
    def Hello():
        return "Hello World"

object = 'foo'

print object.Hello()

Something like this.
Is it possible in python? I think it is but I don't know how to do it.

Thank you very much.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to