delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "decker" <bdeck AT lycos DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Howto create extensions for PythonD |
Date: | 13 May 2006 02:01:11 -0700 |
Organization: | http://groups.google.com |
Lines: | 17 |
Message-ID: | <1147510871.247443.240860@y43g2000cwc.googlegroups.com> |
References: | <1147465565 DOT 398297 DOT 52230 AT g10g2000cwb DOT googlegroups DOT com> |
<446503CB DOT 1060606 AT alex3> | |
<1147487385 DOT 985215 DOT 148130 AT j73g2000cwa DOT googlegroups DOT com> | |
<1147495866 DOT 132298 DOT 261280 AT u72g2000cwu DOT googlegroups DOT com> | |
NNTP-Posting-Host: | 220.233.177.46 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1147510877 11121 127.0.0.1 (13 May 2006 09:01:17 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Sat, 13 May 2006 09:01:17 +0000 (UTC) |
In-Reply-To: | <1147495866.132298.261280@u72g2000cwu.googlegroups.com> |
User-Agent: | G2/0.2 |
X-HTTP-UserAgent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | y43g2000cwc.googlegroups.com; posting-host=220.233.177.46; |
posting-account=R02xJAwAAAASwE3U1qQ37KcHXmocYA_U | |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
So this is more a general python question than one specific to PythonD. There are lots of examples... just google for them. Do someresearch for yourself. Yoiu can start with the python.org documentation for extending python in C or C++: http://docs.python.org/ext/intro.htm. PythonD distutils interface build many modules 'out of the box'. The only limitation (and it is a biggie) is dxe3. The export table has to be explicitly defined symbol by symbol and linked staticly into the main image. Hence, PythonD is not guaranteed to successfuly import your DJGPP-compiled module, as it may encounter 'unresolved symbols' it requires. DXE3 also will not support modules with C++ dependencies or variables. HTH, Ben Decker caddit.net
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |