[Chicago] from x import * but reference it by x.myfunc?

Adam Jenkins emperorcezar at gmail.com
Mon Apr 28 16:37:00 CEST 2008

I think you would just

import x

and that should let you use x.afunc(), etc.

On Mon, Apr 28, 2008 at 9:26 AM, Lukasz Szybalski <szybalski at gmail.com>

> Hello,
> Is there a way I can import another file in a similar way as :
> from x import *
> but be able to reference it in my code as
> x.myfunc()
> x.dothis()
> x.dothat()
> Its less confusing that way where the function came from, but it takes
> the advantage of having all the modules in the code I'm working.
> Would there be any problems in doing such a thing.
> Lucas
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20080428/2891b61d/attachment.htm>

More information about the Chicago mailing list