lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <jans...@parc.com>
Subject Re: [VOTE] Release PyLucene 3.5.0 rc2
Date Thu, 08 Dec 2011 17:06:41 GMT
Andi Vajda <vajda@apache.org> wrote:

> On Thu, 8 Dec 2011, Bill Janssen wrote:
> 
> > Andi Vajda <vajda@apache.org> wrote:
> >
> >> from _jcc import initVM
> >
> > I believe that in the statement "from X import Y", X and Y are
> > essentially strings, not runtime-evaluated values.  So what would
> > work would be
> >
> >   from jcc._jcc import initVM
> >
> > or
> >
> >   initVM = _jcc.initVM
> 
> Thanks for having checked it out.
> I guess we're back to the original with just the _jcc import ahead of
> the block:
> 
>  ...
> from jcc import _jcc
> 
> # used when jcc is invoked with -m from python 2.5
> if __name__ == '__main__':
>     import jcc.__main__
> else:
>     from _jcc import initVM
>  ...

Works in 2.5, anyway.

Bill

Mime
View raw message