[py-dev] Re: Error with py.test and scipy ...

holger krekel hpk at trillke.net
Fri Apr 8 01:21:57 MEST 2005


On Thu, Apr 07, 2005 at 17:45 -0500, Patrick K. O'Brien wrote:
> holger krekel wrote:
> > On Thu, Apr 07, 2005 at 14:54 -0700, Robert Kern wrote:
> >>
> >>Scipy uses a lazy importing scheme implemented in scipy_base.ppimport. 
> > 
> > 
> > import magic's interfering with each other ... this had to happen 
> > sooner or later.  And we've had Valentino having problems with 
> > twisted's nevow already which uses crazy import hacks ... welcome
> > in scary traceback land.  This strongly suggests to me that py.test 
> > will have to try harder to reduce its import magic.  Luckily, i have 
> > an alternative approach which removes the need to have a custom 
> > import hook for the py lib.  I am checking that into the 
> > collect-branch (which will soon get merged, didn't i mention that
> > last week?)
> 
> Count Schevo as yet another project that does its share of import magic.
>  We've managed to keep our magic compatible with py.test's magic and
> nevow's magic, and I'd hate to lose that.

I would be surprised if my brand-new hack breaks yours (because that
is exactly what it is trying to avoid) but i've learned that "import" 
makes the impossible possible and vice versa. 

cheers, 

    holger


More information about the py-dev mailing list