Hi,
Is there a program out there that would generate the C code to instantiate
objects and call them:
ex: miracle.exe -i mymodule.py -o module_internface.c ?
I seem to recall a _yes_ to that but I got a memory overflow :-)
Thanks,
Philippe 4 1302
Just to make sure i'm clear as I've been told about swig and pyrex: I don't
want to eventually have a python script call C modules, but rather a main.c
make calls to python functionnalities.
I did add newbie in the title :-)
Regards,
Philippe
Philippe C. Martin wrote: Hi,
Is there a program out there that would generate the C code to instantiate objects and call them:
ex: miracle.exe -i mymodule.py -o module_internface.c ?
I seem to recall a _yes_ to that but I got a memory overflow :-)
Thanks,
Philippe
Sorry, it is still not clear when I reread it:
1) I have a bunch of Python working modules
2) I need to compile "something" so external C applications can access 1)
Thanks,
Philippe
Philippe C. Martin wrote: Just to make sure i'm clear as I've been told about swig and pyrex: I don't want to eventually have a python script call C modules, but rather a main.c make calls to python functionnalities.
I did add newbie in the title :-)
Regards,
Philippe Philippe C. Martin wrote:
Hi,
Is there a program out there that would generate the C code to instantiate objects and call them:
ex: miracle.exe -i mymodule.py -o module_internface.c ?
I seem to recall a _yes_ to that but I got a memory overflow :-)
Thanks,
Philippe
pyrex can be used for embedding too. http://www.freenet.org.nz/python/embeddingpyrex/
On 6/28/05, Philippe C. Martin <ph*************@sbcglobal.net> wrote: Actually maybe not ... looking at the doc: I have modules already coded in Python, and I need a C wrapper so C applications may link with it. Regards, Philippe On Tuesday 28 June 2005 04:53 pm, Philippe C. Martin wrote: Sounds like it, thanks.
Philippe
On Tuesday 28 June 2005 09:10 pm, Chris Lambacher wrote: Pyrex might be what you are looking for: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
-Chris
On 6/28/05, Philippe C. Martin <ph******@philippecmartin.com> wrote: > Hi, > > Is there a program out there that would generate the C code to > instantiate objects and call them: > > ex: miracle.exe -i mymodule.py -o module_internface.c ? > > I seem to recall a _yes_ to that but I got a memory overflow :-) > > Thanks, > > Philippe > -- > http://mail.python.org/mailman/listinfo/python-list -- ************************************* Philippe C. Martin SnakeCard, LLC www.snakecard.com +1 405 694 8098 *************************************
--
Christopher Lambacher la******@computer.org
Thanks, I cannot get the demo to compile, but I joined their list.
Thanks
Philippe
Chris Lambacher wrote: pyrex can be used for embedding too. http://www.freenet.org.nz/python/embeddingpyrex/
On 6/28/05, Philippe C. Martin <ph*************@sbcglobal.net> wrote: Actually maybe not ... looking at the doc:
I have modules already coded in Python, and I need a C wrapper so C applications may link with it.
Regards,
Philippe On Tuesday 28 June 2005 04:53 pm, Philippe C. Martin wrote: > Sounds like it, thanks. > > Philippe > > On Tuesday 28 June 2005 09:10 pm, Chris Lambacher wrote: > > Pyrex might be what you are looking for: > > http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ > > > > -Chris > > > > On 6/28/05, Philippe C. Martin <ph******@philippecmartin.com> wrote: > > > Hi, > > > > > > Is there a program out there that would generate the C code to > > > instantiate objects and call them: > > > > > > ex: miracle.exe -i mymodule.py -o module_internface.c ? > > > > > > I seem to recall a _yes_ to that but I got a memory overflow :-) > > > > > > Thanks, > > > > > > Philippe > > > -- > > > http://mail.python.org/mailman/listinfo/python-list
-- ************************************* Philippe C. Martin SnakeCard, LLC www.snakecard.com +1 405 694 8098 *************************************
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jordi |
last post by:
Hi,
I'm starting to use Python embedded in a C program. I'm using Python
to execute several scripts using as a variables information retrieved
for several multithread "agents" written in C. ...
|
by: Atul Kshirsagar |
last post by:
I am embedding python in my C++ application. I am using Python *2.3.2* with
a C++ extention DLL in multi-threaded environment. I am using SWIG-1.3.19 to
generate C++ to Python interface.
Now to...
|
by: Robey Holderith |
last post by:
Anyone know a good way to embed python within python?
Now before you tell me that's silly, let me explain
what I'd like to do.
I'd like to allow user-defined scriptable objects. I'd
like to...
|
by: Alicia Haumann |
last post by:
I accidentally sent this to webmaster@python.org, so this could be a
duplicate if "webmaster" forwards it to this list. :{
Hi, there.
Thanks for any help that can be offered. I've been...
|
by: Martin |
last post by:
Greetings,
I am new to python and wish to embed python in an 3D graphics
application to provide application automation. The high level goal is to
be able to drive my app from a script for batch...
|
by: Roose |
last post by:
With some googling I have found these resources:
http://docs.python.org/ext/win-dlls.html
http://www.python.org/doc/faq/windows.html
I have a large Win32/MFC/C/C++ application that has an...
|
by: amit |
last post by:
Hello,
I am currently studying how to embedd python. I am developing a
graphical C++ application. My goal is to embedd python script that will
control some kind of animation.
I have some...
|
by: Tommy Nordgren |
last post by:
I want to write an application that embeds and extends (at least) the
Python and Perl interpreters. Now i want to find as much as possible
about the Python tools used for extending and embedding...
|
by: Qun Cao |
last post by:
Hi Everyone,
I am a beginner on cross language development. My problem at hand is to
build a python interface for a C++ application built on top of a 3D
game engine. The purpose of this python...
|
by: Tim Spens |
last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote:
I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |