Calling python functions from C

2006-07-16 Thread robert . differentone
Could anybody tell me how to call python modules from C. e.g. my Python module : def add(a,b) return(a+b) How can I call "add.py" from C? Please post any simple example. I have read Python embedding in Python Manual but I get "ImportError" all the time? Any help would be appreciated !

Calling python functions from C

2006-05-09 Thread robert . differentone
I am a newbie to Python. I want to call python functions from C. I looked for examples but I couldn't get any simple one. Lets say my python code is : def add(a,b) return (a+b) I want to call add from C. Could anybody please help me? Thanks in advance. R. -- http://mail.python.org/mailman/

DOM and HTML

2006-04-02 Thread robert . differentone
Hi All, I am looking for any Python library which can help to get DOM tree from HTML. Is there any way to access HTML DOM, just like accessing it using javascript. Any kind of help is appreciated. Thanks. R -- http://mail.python.org/mailman/listinfo/python-list