embedded AND extended C code

David Bolen db3l at fitlinxx.com
Thu Aug 16 20:58:07 EDT 2001


Neil Macneale <mac4-devnull at theory.org> writes:

> Gordon McMillan <gmcm at hypernet.com> wrote:
(...)
> > You can embed and extend from the same C program, but you have to embed 
> > first and extend later. See mcmillan-inc.com/embed2.html for a simplistic 
> > example.
> 
> Thanks for the example. I have it running now, and I am starting to 
> appriciate the amazingly bad situations this could get me into :)

Only if you aren't careful (which pretty much holds true for any
Python extending or embedding cases :-)).  It seems to me that
extending while embedding is common situation whenever embedding is
involved, since at least in the cases I've done it, while I may be
embedding Python into a larger application, that application will
almost certainly want to offer services to the embedded Python script.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list