[Zope3-dev] Importing

Lalo Martins lalo@hackandroll.org
Wed, 12 Dec 2001 16:15:54 -0200


On Wed, Dec 12, 2001 at 03:12:20PM +0100, Martijn Faassen wrote:
> Guido van Rossum wrote:
> > I don't find that an important requirement.
> 
> Use case:
> 
> I want to place my unit tests in a sub package in my main package. Let's
> imagine my package is called NodePath and let's imagine it's a sub package
> of ParsedXML, which is a Zope product. It has a 'tests' subpackage containing
> the unit tests.
> 
> In order to write the unit tests, I need to be able to import the NodePath code
> in the package above it. The NodePath code has been written so that it can
> (hopefully) be used with DOM implementations other than the one in ParsedXML.
> Thus, I'd not want the 'tests' sub package to be dependent on ParsedXML.

Sorry, I have to agree with Guido. If you don't want NodePath to be
dependent on ParsedXML, then it shouldn't be a subpackage. Install it
(in a Zope2 environment) in lib/python or even lib/python/Shared/Faassen.

[]s,
                                               |alo
                                               +----
--
  It doesn't bother me that people say things like
   "you'll never get anywhere with this attitude".
   In a few decades, it will make a good paragraph
      in my biography. You know, for a laugh.
--
http://www.laranja.org/                mailto:lalo@laranja.org
         pgp key: http://www.laranja.org/pessoal/pgp

Brazil of Darkness (RPG)      ---       http://www.BroDar.org/