Re: exec and func_code

2007-07-24 Thread Gabriel Genellina
En Tue, 24 Jul 2007 14:55:43 -0300, Prepscius, Colin (IT) <[EMAIL PROTECTED]> escribió: > Actually, thx to Gabrielle Genellina, who wrote earlier: Ehmm... my name is actually Gabriel, and last time I checked, I was a male :) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/

RE: exec and func_code

2007-07-24 Thread Prepscius, Colin (IT)
ECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Carsten Haese Sent: Tuesday, July 24, 2007 1:39 PM To: python-list@python.org Subject: Re: exec and func_code On Tue, 2007-07-24 at 13:24 -0400, Prepscius, Colin (IT) wrote: > Does anybody know how to pass parameters to 'exec > somefu

Re: exec and func_code

2007-07-24 Thread Carsten Haese
On Tue, 2007-07-24 at 13:24 -0400, Prepscius, Colin (IT) wrote: > Does anybody know how to pass parameters to 'exec > somefunction.func_code'? > > def f1(): > print 'this is f1' > > def f2(p): > print 'this is f2, p =', str(p) > > exec f1.func_code > THIS RESULTS IN: "this is nf1"