Re: What is the best way to do dynamic imports ?

2007-12-30 Thread Graham Dumpleton
On Dec 31, 1:24 am, [EMAIL PROTECTED] wrote: > Hi list and python gurus :-) > > I'm playing with somemod_pythonand web development. And in me code I > need to do som dynamic imports. > Right now I just do a: > > exec 'import '+some_modulename > > But it seems to easy, is there a "dark side" to doin

Re: What is the best way to do dynamic imports ?

2007-12-30 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > First of thanks to all for you, especially for the quick replys. > > Just need to walk the dog then I giv it a short. Please, don't kill your dog! We're a peace-loving community here that respects dogs, and snakes and even trolls. SCNR, Diez -- http://mail.python.

Re: What is the best way to do dynamic imports ?

2007-12-30 Thread marcroy . olsen
First of thanks to all for you, especially for the quick replys. Just need to walk the dog then I giv it a short. On Dec 30, 3:57 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > Do anybody now a good howto or tutorial to this? > > No... what do you want covered? Nothing, think you repl

Re: What is the best way to do dynamic imports ?

2007-12-30 Thread Gabriel Genellina
En Sun, 30 Dec 2007 12:24:53 -0200, <[EMAIL PROTECTED]> escribi�: > I'm playing with some mod_python and web development. And in me code I > need to do som dynamic imports. > Right now I just do a: > > exec 'import '+some_modulename > > But it seems to easy, is there a "dark side" to doing it this

Re: What is the best way to do dynamic imports ?

2007-12-30 Thread Torsten Bronger
Hallöchen! [EMAIL PROTECTED] writes: > I'm playing with some mod_python and web development. And in me > code I need to do som dynamic imports. Right now I just do a: > > exec 'import '+some_modulename > > But it seems to easy, is there a "dark side" to doing it this way? > (memory use,processin

Re: What is the best way to do dynamic imports ?

2007-12-30 Thread Benjamin
On Dec 30, 8:24 am, [EMAIL PROTECTED] wrote: > Hi list and python gurus :-) > > I'm playing with some mod_python and web development. And in me code I > need to do som dynamic imports. > Right now I just do a: > > exec 'import '+some_modulename The correct way to do this is use the __import__ funct

What is the best way to do dynamic imports ?

2007-12-30 Thread marcroy . olsen
Hi list and python gurus :-) I'm playing with some mod_python and web development. And in me code I need to do som dynamic imports. Right now I just do a: exec 'import '+some_modulename But it seems to easy, is there a "dark side" to doing it this way? (memory use,processing ,etc) And have to I