Re: Can string be callable as a method ?

2007-05-28 Thread Steven D'Aprano
On Mon, 28 May 2007 06:45:47 -0700, Jia Lu wrote: > Hi all > I tried to scan a directory and __import__ all modules , > > imported module: help > imported module: __init__ > imported module: hi > imported module: thanks > > and I scaned all methods in them, and put them to a list like: > > [['

Can string be callable as a method ?

2007-05-28 Thread Jia Lu
Hi all I tried to scan a directory and __import__ all modules , imported module: help imported module: __init__ imported module: hi imported module: thanks and I scaned all methods in them, and put them to a list like: [['f_chelp', 'f_help'], [], ['f_exclaim', 'f_hi', 'random'], ['f_thanks', 'r