473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 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 1351
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 commands which I would like to import to the...
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 use as well these extended functions). While...
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 control some kind of animation. I have some...
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 extension module from Python that is embedded in a C...
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 behind extending methods and delegates, this is where...
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 "Python/C API Reference Manual. In the examples...
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 of a 3D game engine. The purpose of this python...
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 guidance w.r.t this matter from you experienced...
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 Register_Handler(...) from python via...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.