Alan Gauld wrote:
Even if you use the other suggestions to prove its
callable that doesn't mean you can do this:
???? print sys.x()
If the callable takes parameters then this will fail.
You need to know quite a lot more about what you
are calling and that is a non trivial task in the general case.
Not to mention it is inherently dangerous to call arbitrary functions without
understanding what they are doing.
For example, you may lose your entire home directory.
(shutil.rmtree can do that with just one call)
Albert
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor