On 7/25/06, Dave Kuhlman <[EMAIL PROTECTED]> wrote:
> KraftDiner wrote:
>
> > What ways can I call my C++ classes from within Python.
> > I've looked at boost but it would appear that there is little
> > support or knowledge on boost in the python community.
>
> If you want to write Python wrappers
KraftDiner wrote:
> What ways can I call my C++ classes from within Python.
> I've looked at boost but it would appear that there is little
> support or knowledge on boost in the python community.
If you want to write Python wrappers for C++ code *by hand*, look
here:
http://docs.python.org/
On 25 Jul 2006 10:51:36 -0700, KraftDiner <[EMAIL PROTECTED]> wrote:
> What ways can I call my C++ classes from within Python.
> I've looked at boost but it would appear that there is little
> support or knowledge on boost in the python community.
It is not true! I am sure that if you ask you ques
Terry Reedy wrote:
> "P Boy" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>>> Has anyone yet written a program to grab C struct declaration from the
>>> .h
>>> to produce code like
>>>
>>> # Overlay configuration
>>> class OverlayStoreConfig(ctypes.Structure):
>>> _fields_ =
"P Boy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> Has anyone yet written a program to grab C struct declaration from the
>> .h
>> to produce code like
>>
>> # Overlay configuration
>> class OverlayStoreConfig(ctypes.Structure):
>> _fields_ = [('FormatVersion', ctypes.c
> Has anyone yet written a program to grab C struct declaration from the .h
> to produce code like
>
> # Overlay configuration
> class OverlayStoreConfig(ctypes.Structure):
> _fields_ = [('FormatVersion', ctypes.c_ulong),
> ('VolumeSize', ctypes.c_longlong),
>
David Boddie <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
> > <[EMAIL PROTECTED]> wrote:
>
> > C is the lowest, most fundamental level of extension, but there are many
> > other alternatives -- SWIG to wrap existing libraries, Boost or SCXX or
> > SIP to wrap specifically C++ with very diffe
"P Boy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have recently found another approach by using ctypes
(http://starship.python.net/crew/theller/ctypes/).
Ctypes is now a 2.5 standard lib module and in being tested as such on
multiple systems.
> I have a library from Micro
I have written some C extension before but it was pretty tedious. I
have recently found another approach by using ctypes
(http://starship.python.net/crew/theller/ctypes/). Which you develop
your C module in dynamic library (DLL in Windows world), the from
Python, you can call the C functions in the
I have written some C extension before but it was pretty tedious. I
have recently found another approach by using ctypes
(http://starship.python.net/crew/theller/ctypes/). Which you develop
your C module in dynamic library (DLL in Windows world), the from
Python, you can call the C functions in the
Alex Martelli wrote:
> <[EMAIL PROTECTED]> wrote:
> C is the lowest, most fundamental level of extension, but there are many
> other alternatives -- SWIG to wrap existing libraries, Boost or SCXX or
> SIP to wrap specifically C++ with very different philosophies (template
> heavy, minimal, Qt-base
<[EMAIL PROTECTED]> wrote:
> I was a C Programmer for a while. Lately started to learn Python for
> one small project at school. I joined a small company where they use
> C++ for development.
>
> Can we use Python and C together ? I mean create some classes in Python
> and some number crunching a
> http://docs.python.org/api/api.html
That should have been
http://docs.python.org/ext/ext.html
but you need the other one sooner or later.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I was a C Programmer for a while. Lately started to learn Python for
> one small project at school. I joined a small company where they use
> C++ for development.
>
> Can we use Python and C together ? I mean create some classes in Python
> and some number crunching alg
14 matches
Mail list logo