Test a Python function within Python without importing

Marco Aschwanden PPNTWIMBXFFC at spammotel.com
Tue Nov 2 10:19:49 EST 2004


> On Tue, 02 Nov 2004 16:06:42 +0100, Diez B. Roggisch 
> <deetsNOSPAM at web.de> wrote:
>
>> use exec on the compiled object - the details are in the docs.
>
> I did it... but exec() does not return a value - or does it?

Oops... it sets global vars... I didn't think of that! Thanks,
Marco





More information about the Python-list mailing list