a little parsing challenge ☺

Thomas Jollans t at jollybox.de
Tue Jul 19 14:14:53 EDT 2011


On 19/07/11 19:49, Xah Lee wrote:
> On Jul 17, 8:31 am, Thomas Jollans <t... at jollybox.de> wrote:
>>
>> I thought I'd have some fun with multi-processing:
>>
>> https://gist.github.com/1087682
> 
> hi Thomas. I ran the program, all cpu went max (i have a quad), but
> after i think 3 minutes nothing happens, so i killed it.
> 
> is there something special one should know to run the script?
> 
> I'm using Python 3.2.1 on Windows 7.
> 
>  Xah

Well, it overdoes the multi-processing “a little”. Checking each
character in a separate process might have been overkill.

Here's a sane version:

https://gist.github.com/1087682/2240a0834463d490c29ed0f794ad15128849ff8e

old, crazy version:
https://gist.github.com/1087682/6841c3875f7e88c23e0a053ac0d0f0565d8713e2




More information about the Python-list mailing list