> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Andraž Tori
> Sent: Monday, March 26, 2007 2:04 PM
> To: [email protected]
> Subject: RE: [pylucene-dev] status of pylucene & mod_python
> 
> On Mon, 2007-03-26 at 22:52 +0200, Andraž Tori wrote:
> > On Mon, 2007-03-26 at 02:46 -0700, Ofer Nave wrote:
> > > > I just finished coding up a module I named ipc.py.  It 
> provides a 
> > > > function called call_in_seperate_process that takes a 
> module name, 
> > > > a function name, and wildcard args.  It then uses 
> popen2.Popen3 to 
> > > > invoke the ipc module as an executable, and yaml to 
> serialize the 
> > > > request and the args.
> > > > The ipc module-as-executable deserializes the request, executes 
> > > > it, uses yaml to serialize the output of the function, 
> and prints 
> > > > it to STDOUT, where it is then deserialized by the 
> parent process 
> > > > and returned.
> > > 
> > > I promise I won't innundate this list with bug fixes and 
> > > improvements to my ipc.py module - after this one.  :)
> > 
> > Please do tell us about any improvements you make!!!
> > 
> > This tool is WONDERFUL. i am now able to actually run my searches 
> > inside apache. do you allow it's use... there's no licence 
> specified...?

Wow, I'm glad someone found it useful.  It's not something I plan to turn
into a project, so let's just call it public domain.

> > ... but one bug really took some time for me to figure it 
> out... it is 
> > spelled "sepArate" not "sepErate" ... i needed some time to figure 
> > that one out:)

Born and raised in America, and I still can never get the spelling for that
word right.  :)

> Oh one more thing.. how come you used YAML and not Pickle - 
> it would probably be faster?

New to Python, never used pickle.  I'm used to using YAML all over the place
in the past, for config files, or as a prettier dump function for debugging,
and for serialization.  I knew it, so I used it.

When I have time to learn more about pickling, I'll probably use that for
serialization moving forward.

-ofer

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to