Re: parsing in python

2011-08-03 Thread John L. Stephens
Depending on what you want to do, you might try looking at the pyparsing module. I have used it to successfully parse sentences looking for keywords and structures. On 8/3/2011 9:26 AM, Jayron Soares wrote: Hi folks, I've created a simple method to grab files texts from directory by words r

Re: multiprocessing Pool workers cannot create subprocesses

2011-03-19 Thread John L. Stephens
On 3/18/2011 7:54 PM, Jason Grout wrote: Right; thanks. Let me rephrase my questions: 1. Why is important that the multiprocessing Pool worker processors have daemon=True (I think this is the same as asking: why is it important that they be terminated with terminate() rather than join() )?

Re: Multiprocessing.Process Daemonic Behavior

2011-03-16 Thread John L. Stephens
On 3/15/2011 11:19 PM, James Mills wrote: On Wed, Mar 16, 2011 at 12:34 PM, John L. Stephens wrote: I would have expected the daemonic children processes to terminate with the parent process, regardless of how the parent process terminates, either normally or forcefully. As I understand it

Multiprocessing.Process Daemonic Behavior

2011-03-15 Thread John L. Stephens
Greetings, I'm trying to understand the behavior of the multiprocessing.Process daemonic attribute. Based on what I have read, if a Process ( X ) is created, and before it is started ( X.start() ), I should be able to set the process as daemonic using X.daemon=True. Once this attribute is