Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28829
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'cpython': 0.05; 'subject:code': 0.07; 'python': 0.09; 'c/c++': 0.09; 'callable': 0.09; 'compiler.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:into': 0.09; 'terry': 0.09; 'subject:python': 0.11; '"this': 0.13; 'language': 0.14; 'c/c++.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:dll': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'ideal': 0.20; 'do.': 0.21; 'embedding': 0.22; 'latter': 0.22; 'help.': 0.22; 'external': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'compiled': 0.27; 'dll': 0.27; 'header:X-Complaints-To:1': 0.28; 'extending': 0.29; 'classes': 0.30; 'code': 0.31; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'but': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'deliver': 0.60; 'more': 0.63; 'believe': 0.69; 'appreciative': 0.84; 'compiles': 0.84; 'received:fios.verizon.net': 0.84; 'wester': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: Compile python code into a dll |
| Date | Mon, 10 Sep 2012 12:06:42 -0400 |
| References | <504dd9c6$1@news.fhg.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-75-251-66.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 |
| In-Reply-To | <504dd9c6$1@news.fhg.de> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.449.1347293236.27098.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1347293236 news.xs4all.nl 6947 [2001:888:2000:d::a6]:54579 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:28829 |
Show key headers only | View raw
On 9/10/2012 8:15 AM, Rolf Wester wrote: > I have Python code that I would like to compile into a dll (I have to > deliver a C/C++ callable dll and I don't want to reimpelement the Python > code in C/C++). It's not for extending Python but I want to call the > Python functions and classes from C/C++. It's more like extending C/C++ > with Python. I would be very appreciative for any help. Cython compiles CPython to C which can be compiled by and c/c++ compiler. I believe it can do the above. "This makes Cython the ideal language for wrapping external C libraries, embedding CPython into existing applications, ". I think the latter is what you want to do. http:cython.org -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Compile python code into a dll Rolf Wester <rolf.wester@ilt.fraunhofer.de> - 2012-09-10 14:15 +0200 Re: Compile python code into a dll Ramchandra Apte <maniandram01@gmail.com> - 2012-09-10 06:08 -0700 Re: Compile python code into a dll Miki Tebeka <miki.tebeka@gmail.com> - 2012-09-10 06:11 -0700 Re: Compile python code into a dll Terry Reedy <tjreedy@udel.edu> - 2012-09-10 12:06 -0400 Re: Compile python code into a dll Rolf Wester <rolf.wester@ilt.fraunhofer.de> - 2012-09-11 09:05 +0200
csiph-web