Also, remember that since the latter functions will always overwrite
the first, you can just reverse the order of the imports:
from package2 import *
from package1 import *
This should preserve the functions of package1 over the other ones.
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 24 Oct 2008 11:06:54 -0700, Reckoner wrote:
> I have multiple packages that have many of the same function names. Is
> it possible to do
>
> from package1 import *
> from package2 import *
>
> without overwriting similarly named objects from package1 with material
> in package2? How abou
In message
<[EMAIL PROTECTED]>,
Reckoner wrote:
> I have multiple packages that have many of the same function names. Is
> it possible to do
>
> from package1 import *
> from package2 import *
>
> without overwriting similarly named objects from package1 with
> material in package2?
Avoid wildc
If you're concerned about specific individual functions, you can use:
from package1 import some_function as f1
form package2 import some_function as f2
--
http://mail.python.org/mailman/listinfo/python-list
I have multiple packages that have many of the same function names. Is
it possible to do
from package1 import *
from package2 import *
without overwriting similarly named objects from package1 with
material in package2? How about a way to do this that at least gives a
warning?
Yeah, just use
On Oct 24, 1:06 pm, Reckoner <[EMAIL PROTECTED]> wrote:
> I have multiple packages that have many of the same function names. Is
> it possible to do
>
> from package1 import *
> from package2 import *
>
> without overwriting similarly named objects from package1 with
> material in package2? How abo
I have multiple packages that have many of the same function names. Is
it possible to do
from package1 import *
from package2 import *
without overwriting similarly named objects from package1 with
material in package2? How about a way to do this that at least gives a
warning?
Thanks.
--
http:/