[Pyrex] Does "exec" work in Pyrex?

Bob Ippolito bob at redivi.com
Wed Jun 9 21:25:56 CEST 2004


On Jun 9, 2004, at 2:26 PM, Phillip J. Eby wrote:

> At 11:22 AM 6/9/04 -0400, Edward C. Jones wrote:
>> Does "exec" work in Pyrex?
<snip> No. </snip>
> However, note that even if exec did "work" in the sense of allowing 
> Python code to be run, it would:
>
> 1) not have access to the locals namespace, because C code doesn't 
> have a namespace dictionary
> 2) not execute Pyrex statements, because it's Python.

Not to mention the fact that you really shouldn't need exec for much of 
anything, anyway :)

-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20040609/7ff751ed/smime.bin


More information about the Pyrex mailing list