470,588 Members | 2,174 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,588 developers. It's quick & easy.

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 1258
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Eli Daniel | last post: by
1 post views Thread by amit | last post: by
1 post views Thread by Richard Townsend | last post: by
5 posts views Thread by vbgunz | last post: by
1 post views Thread by jeremito | last post: by
7 posts views Thread by Maximus Decimus | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.