Problem with exec

2008-03-12 Thread Justus Schwabedal
Dear python users! I try to setted up compile-free parallelism using the exec command. However I had some problems with namespaces which I find mysterious although I managed to work around. But the workaround is not nice, so I wonder if there are ways. I do the following, bash-3.2$ cat execB

Re: Is there Python equivalent to Perl BEGIN{} block?

2008-03-12 Thread Justus Schwabedal
What do you need it for anyway? I just read about it and I think it's useless in python. On Mar 13, 2008, at 1:03 AM, Steven D'Aprano wrote: > On Wed, 12 Mar 2008 11:19:05 -0700, Alex wrote: > >> Hi all, >> >> The subject says pretty much all > > Only to people who know what the Perl BEGIN{} bl

Problem with exec

2008-03-13 Thread Justus Schwabedal
I'm trying to parallise with python. Specifically I'm sending code to the processes and let them exec this code (in ascii form). However I ran into a problem with Namespaces (I think) which I do not understand. Here's what I do first: --- bash-3.2$ cat execB

Re: Problem with exec

2008-03-14 Thread Justus Schwabedal
On Mar 14, 2008, at 4:41 AM, [EMAIL PROTECTED] wrote: > On Mar 14, 9:47 am, Justus Schwabedal <[EMAIL PROTECTED]> > wrote: > [snipped] >> However when I do this: >> >> bash-3.2$ cat execBug2.py >> #! /usr/bin/python >> header=""" &g