472,326 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,326 software developers and data experts.

Questions about extending Python...

I've got a third-part application that exposes a C API. I'd like to
wrap it in Python. Is there a specific forum that covers extending and
embedding Python, or are those type of questions O.K. on this list?

Scott Huey
Jun 9 '06 #1
3 1299
Redefined Horizons wrote:
I've got a third-part application that exposes a C API. I'd like to
wrap it in Python. Is there a specific forum that covers extending and
embedding Python, or are those type of questions O.K. on this list?


This is the place. Swig & Pyrex are a couple of standard answers.

--Scott David Daniels
sc***********@acm.org
Jun 9 '06 #2
Redefined Horizons wrote:
I've got a third-part application that exposes a C API. I'd like to
wrap it in Python. Is there a specific forum that covers extending and
embedding Python, or are those type of questions O.K. on this list?

Scott Huey


Over the years, many posts (and questions) have come up on dynamically
importing and reloading modules and the inadequacy of the now available
import and reload() features. This should enable one to modify or add
code at runtime without having to restart the application.
Unfortunately, few respondents understand the implications of this
possibility. Regrettably also some display their ignorance by swinging
their self perceived weight around.

James Coplien, a Bell Laboratories Scientist, published "Advanced C++
Programming Styles and Idioms". Although now 15 years old, this book
still has today quite some impact. Of particular interest for the
problem at hand is Chapter 9 which presents idioms supporting
incremental run-time update. Further Coplien illustrates in this
chapter the major advantage gained by languages like Smalltalk and Lisp
in this matter by having incremental run-time update as a built-in
feature.

Reading Coplien may further the cause of this very basic missing
requirement in Python,

Jun 10 '06 #3
malv wrote:
Over the years, many posts (and questions) have come up on dynamically
importing and reloading modules and the inadequacy of the now available
import and reload() features.
and this is related to extending Python with code from existing C
libraries in exactly what way ?
Reading Coplien may further the cause of this very basic missing
requirement in Python,


so, what are you waiting for ? just do it, and post a patch when you're
done.

</F>

Jun 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Eli Daniel | last post by:
Hi, I am relative new to Python. Please tell me if the following is possible. I have a command line shell written in C. This shell executes some...
3
by: stefan | last post by:
Hi Folks, I currenty extended some of my C++ functionality to python and also embedded python to use python functionality in my C++ system (and...
1
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...
1
by: Richard Townsend | last post by:
In the "Extending and Embedding" part of the Python documentation: section 5.4 "Extending Embedded Python" - it describes how to use a Python...
5
by: vbgunz | last post by:
Hello everyone. I own two books. Learning Python and Python in a nutshell. When cross referencing the two books to try and clarify the ideas...
1
by: jeremito | last post by:
I am trying to learn how to extend and/or embed Python. I have looked at the document "Extending and Embedding the Python Interpreter" and also...
6
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...
7
by: Maximus Decimus | last post by:
HI all, I am using python v2.5 and I am an amateur working on python. I am extending python for my research work and would like some help and...
0
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...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.