Re: from module import * using __import__?

2011-07-05 Thread Thomas Jollans
On 07/02/2011 09:52 PM, Dan Stromberg wrote: > > Is there a decent way of running "from import *"? Perhaps > using __import__? > > Does it mean using the copy module or adding an element to globals() > somehow? Yes, exactly. That's what `from x import *` does: Get the module, and then add all

Re: from module import * using __import__?

2011-07-04 Thread Gabriel Genellina
En Sat, 02 Jul 2011 16:52:11 -0300, Dan Stromberg escribió: Is there a decent way of running "from import *"? Perhaps using __import__? Does it mean using the copy module or adding an element to globals() somehow? Yes, I think I do have a good use for this: importing either pure python

Re: from module import * using __import__?

2011-07-02 Thread Terry Reedy
On 7/2/2011 12:52 PM, Dan Stromberg wrote: Is there a decent way of running "from import *"? Perhaps using __import__? Does it mean using the copy module or adding an element to globals() somehow? Yes, I think I do have a good use for this: importing either pure python or cython versions of

from module import * using __import__?

2011-07-02 Thread Dan Stromberg
Is there a decent way of running "from import *"? Perhaps using __import__? Does it mean using the copy module or adding an element to globals() somehow? Yes, I think I do have a good use for this: importing either pure python or cython versions of a module into a single namespace that can prov