Article View: pl.comp.lang.python
Article #375embedding
From: piter
Date: Fri, 13 Dec 2002 21:07
Date: Fri, 13 Dec 2002 21:07
31 lines
1403 bytes
1403 bytes
chce zrobic taka rzecz:
z poziomu c/c++ chce wolac pythonowy skrypt (dynamicznie tworzony przez
main'a) ktory z kolei ma wolac moje callbacki z c/c++.
wyglada to na embedding & extending
np:
// moje collbaki
void calla() {
}
void callb() {
}
main() {
<stworz skrypt jak np ponizej>
<tu wolam ponizszy pythonowy skrypt>
}
skrypt.py
k = a()
if k:
b(k)
def a():
.
.
calla()
def b():
.
.
callb()
Technical Details
Message-ID:
<atdi8o$meh$1@news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!fu-berlin.de!fr.usenet-edu.net!usenet-edu.net!proxad.net!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!fu-berlin.de!fr.usenet-edu.net!usenet-edu.net!proxad.net!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail From: "piter" <tojopiter@yahoo.com> Newsgroups: pl.comp.lang.python Subject: embedding Date: Fri, 13 Dec 2002 22:07:43 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 34 Message-ID: <atdi8o$meh$1@news.tpi.pl> Reply-To: "piter" <tojopiter@yahoo.com> NNTP-Posting-Host: pw230.poznan.cvx.ppp.tpnet.pl X-Trace: news.tpi.pl 1039813721 22993 217.99.124.230 (13 Dec 2002 21:08:41 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Fri, 13 Dec 2002 21:08:41 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit