2009/3/27 Alessandro Ronchi <alessandro.ron...@soasi.com>: > è possibile, dato un modulo python, avere una funzione che restituisca > l'elenco dei nomi dei metodi che sono contenuti?
non testato (ne` provato) import modulo import inspect print [name for name in dir(modulo) if inspect.ismodule(getattr(modulo, name))] -- Lawrence Oluyede [eng] http://oluyede.org - http://twitter.com/lawrenceoluyede [ita] http://neropercaso.it - http://twitter.com/rhymes _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python