[Python-Dev] Conflicts [was Re: Keyword meanings [was: Accept just PEP-0426]]
steve at pearwood.info
Sun Dec 9 03:11:34 CET 2012
On 09/12/12 12:32, Chris Angelico wrote:
> On Sun, Dec 9, 2012 at 12:15 PM, Steven D'Aprano<steve at pearwood.info> wrote:
>> Assuming that two software packages Spam and Ham install into directories
>> Spam and Ham, how can merely having them installed side-by-side lead to a
>> I can see how running or importing Spam and Ham together might lead to
>> problems. And I can see that if package Spam wants to install into
>> directory Ham, that would be bad. But who does that?
> If two packages Spam and Ham both define a module Jam, then the one
> that gets loaded will depend on the search path. That would be one
> form of conflict.
What am I missing?
Why would a software package called "Spam" install a top-level module called
"Jam" rather than "Spam"? Isn't the whole point of Python packages to solve
this namespace problem?
More information about the Python-Dev