[Import-SIG] What if namespace imports weren't special?
pje at telecommunity.com
Tue Jul 12 01:07:09 CEST 2011
At 08:59 AM 7/11/2011 +0200, Martin v. Löwis wrote:
> > In at least Perl, PHP, and Java, you don't have to do anything special
> > to merge components in a single namespace from multiple parts of the
> > class/include/autoload path.
>Not true. In all three languages, you have to declare in the module what
>package it belongs to. So there is something special to do.
But you have to do that for *every* package, so it's not
special. (i.e., by special, I meant, "in addition to what you do
normally to make a package".
>I'd go further: any directory with the package name could constitute
>a portion of the package. With your approach, you'd need a file with
>an importable extension in each portion of the "zope" package, right?
For that version, yes. For the performance and compatibility reasons
discussed elsewhere in this thread, though, that particular variation
isn't really workable.
More information about the Import-SIG