How to: get list of modules in a package

Mike C. Fletcher mcfletch at
Tue Oct 12 21:11:17 CEST 2004

Dan Perl wrote:

>What a tease!  "It definitely has been done in the past", so there must be a 
>way, but you're not telling us how you did that!  :-)
Ah, apparently I wasn't clear enough in my quoted antecedent :) , I was 
referring to Peter's comment that he'd not seen anyone produce modules 
'from "thin air"', rather than to whether this could be solved in the 
general case.  I was backing him up in his assertion that there's no 
*general* way to solve the problem, rather than attempting to contradict 
him :)  (those Canucks get dangerous when contradicted).

If you mean you wanted to know how to do the module-from-thin-air thing, 
the code for mcf.vrml is available on sourceforge, so it's not like I'm 
hiding it ;) , but I doubt you'd want to use that particular pattern 
anymore :) .

Have fun,

>>Peter L Hansen wrote:

>>>import hook is used, even from remote locations or, presumably
>>>(though I haven't seen it done yet), from "thin air" where
>>>the module is generated dynamically.
  Mike C. Fletcher
  Designer, VR Plumber, Coder

More information about the Python-list mailing list