[Numpy-discussion] python 2.4 incompatibility in numpy.lookfor in numpy 1.2.0rc2

joep josef.pktd at gmail.com
Tue Sep 23 18:48:22 EDT 2008


A possible solution would be in

http://bazaar.launchpad.net/~pauli-virtanen/scipy/pydocweb/revision/386

It seems to be possible to be used in the same way when  iter_modules
is not available.
The usage in ``_lookfor_generate_cache`` in lib/utils.py looks almost
exactly the same
as in the above revision

Josef

On Sep 23, 4:55 pm, "Jarrod Millman" <mill... at berkeley.edu> wrote:
> On Tue, Sep 23, 2008 at 1:35 PM, Robert Kern <robert.k... at gmail.com> wrote:
> > On Tue, Sep 23, 2008 at 15:18, joep <josef.p... at gmail.com> wrote:
> >> Hi,
> >> I was trying to use lookfor on python 2.4 and got an exception with
> >> np.lookfor because of a missing method in pkgutil that was added in
> >> python 2.5.
>
> > Hmmm. Unfortunately, that's an intrinsic part of the lookfor()
> > functionality. We could just bring in all of pkgutil.py. Or we remove
> > lookfor(). Or we document it as working with Python 2.5 only.
>
> For 1.2.0, let's add a note to the docstring stating it currently
> works for 2.5 and make it raise a more informative exception.
>
> lookfor is in 1.1.x as well.
>
> --
> Jarrod Millman
> Computational Infrastructure for Research Labs
> 10 Giannini Hall, UC Berkeley
> phone: 510.643.4014http://cirl.berkeley.edu/
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discuss... at scipy.orghttp://projects.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list