<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
That's the easy part. Same as calling a python function. If
your function is called "spam" in an extension module called "eggs", you
import eggs and call eggs.spam.
<p>>>> import eggs
<br>>>> eggs.spam()
<p>Probably the question you should be asking is: "How do I write an external
C function?"
<p>I refer you to the "extending and embedding" section of your favorite
python book. You are interested in "extending" which means "writing
a python module in C". Warning, this is a somewhat advanced topic,
but easy once you get the hang of it.
<p>Sam Wun wrote: [how does python invoke an external C function?]
<blockquote TYPE=CITE>thansk
<br>Sam.
<pre>--
Sam Wun Firewalls / Security
OneGuard Senior Software Engineer Electronic Commerce
eSec Limited Phone: +61 3 83715376
<a href="mailto:swun@eSec.com.au">mailto:swun@eSec.com.au</a> C++/JAVA/UNIX/OOP/OOD</pre>
</blockquote>
--
<br>Ken Seehof
<br>kens@sightreader.com
<br>starship.python.net/crew/seehof
<br>Hi! I'm a .signature virus! copy me into your .signature file to help
me spread!
<br> </html>