Pure Embedding

Khorne khornie at poczta.onet.pl
Thu Mar 6 15:29:40 EST 2003


 Hello!

Can anyone tell me why *untouched* "pure embedding" example from python.org
just does not work? The code can be found at
http://www.python.org/doc/2.2.2/ext/pure-embedding.html

I wote the following script:

-script.py-

def func(a,b):
	return a+b

-end-

And I get:

[root at khorne python]# ./call ./script.py func 1 2
ValueError: Empty module name
Failed to load "./script.py"

WTF?

regards
-- 
[/ Khorne <khornie at -poczta.onet.pl> : I must rule with eye and claw,  \]
[: Linux BOfH registered as 246296  : as the hawk among lesser birds. :]
[\ GG #3552098               -=*http://leto.homedns.org*=-            /]




More information about the Python-list mailing list