Could someone point me at a discussion/article that explains the need
for namespace packages? I'm sure there is some good reason for it
but on the surface it seems very confusing. I've always thought that
the purpose of the __init__ file is to define the public interface
for a package. So when you say:
import foo
You get foo defined in the way it should be. I'm not sure how doing :
import foo.api as foo
is an improvement. Whether the api is defined in __init__.py or
api.py doesn't seem to matter (though I'm sure this is where I'm not
understanding things...). I've googled and found references to
needing to install and distribute sub-packages separately but that
doesn't really seem to explain why __init__ can't be used in the
sub-package. Is this primarily a limitation in the distribution and
setup tools?
Can someone shed some light on this for me?
Ted
At 08:11 AM 1/10/2008, Jeff Whitaker wrote:
Andrew Straw wrote:
> Great -- hopefully that saved you some API re-arrangement pain. No
> problem on shuffling mpl_sizer around -- please go ahead do it if you
> have time.
>
> -Andrew
>
> Jeff Whitaker wrote:
>> Andrew: Thanks, you've convinced me. Is it OK with you if I go
>> ahead and make those changes to mplsizer at the same time I do basemap?
>>
>> -Jeff
>>
>
Andrew: OK, the change to mpl_toolkits (which is now a proper namespace
package) is all done.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED]
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel