migrating to packages

Hrvoje Niksic hniksic at xemacs.org
Thu Oct 4 08:52:50 EDT 2007


Bruno Desthuilliers <bruno.42.desthuilliers at wtf.websiteburo.oops.com> writes:

>> We agree on that.  It is the OP who *wants* to access his modules
>> directly without ever naming the package.
>
> To be exact, he wants to reorganize it's source code (splitting a
> file that's getting too big AFAICT)

You're right, I misread his original problem statement (as you also
correctly pointed out later in the post).  So yes, a package will do
what he wants, simply by arranging the necessary imports in
__init__.py.  Sorry about the misunderstanding.

>> That is why I think he is missing the point of having a package in
>> the first place.
>
> MHO opinion is that *you* are missing *one* of the point*s* of having
> packages.

:-)



More information about the Python-list mailing list