migrating to packages

Erik Jones erik at myemma.com
Wed Oct 3 16:48:03 EDT 2007


On Oct 3, 2007, at 11:42 AM, Gerardo Herzig wrote:

> Hi all. I have a single file with several classes, wich i want to
> separate into several packages.
> The big file is named, say MYCLASES, and contains a class named
> A(object), and B(A).
>
> We have been using this MYCLASES in the
> from MYCLASES import B syntax, but i cant reproduce this syntax using
> packages. Im forced to write from PACKAGE.B import *, and if that  
> means
> i have to touch so many files, that would really be a problem to me.
> There is (i cant find it yet) a place where i can read about that kind
> of package 'migration' situation?
>
> Because i *really* want to keep the FROM PACKAGE import B syntax.

http://www.python.org/doc/current/tut/ 
node8.html#SECTION008400000000000000000

Erik Jones

Software Developer | Emma®
erik at myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com





More information about the Python-list mailing list