Thomas Heller wrote:
> Nick Craig-Wood schrieb:
> > Thomas Heller wrote:
> >> Nick Craig-Wood schrieb:
> >> > Interesting - I didn't know about h2xml and xml2py before and I've
> >> > done lots of ctypes wrapping! Something to help with the initial
> >> > drudge work of converting the structur
Nick Craig-Wood schrieb:
> Thomas Heller wrote:
>> Nick Craig-Wood schrieb:
>> > Interesting - I didn't know about h2xml and xml2py before and I've
>> > done lots of ctypes wrapping! Something to help with the initial
>> > drudge work of converting the structures would be very helpful.
>> >
>>
Thomas Heller wrote:
> Nick Craig-Wood schrieb:
> > Interesting - I didn't know about h2xml and xml2py before and I've
> > done lots of ctypes wrapping! Something to help with the initial
> > drudge work of converting the structures would be very helpful.
> >
> > ( http://pypi.python.org/pypi/c
Nick Craig-Wood schrieb:
> Ralf Schoenian wrote:
>> Ryan wrote:
>> > I've been using Python for many years now. It's a wonderful language
>> > that I enjoy using everyday. I'm now interested in getting to know
>> > more about the guts (C/C++) and extending it. But, extending python
>> > still see
On Jan 5, 9:06 pm, Ryan wrote:
> I've been using Python for many years now. It's a wonderful language
> that I enjoy using everyday. I'm now interested in getting to know
> more about the guts (C/C++) and extending it. But, extending python
> still seems like a black art to me.
There are severa
Ralf Schoenian wrote:
> Ryan wrote:
> > I've been using Python for many years now. It's a wonderful language
> > that I enjoy using everyday. I'm now interested in getting to know
> > more about the guts (C/C++) and extending it. But, extending python
> > still seems like a black art to me. Is th
Ryan wrote:
> 3. Extending CPython by connecting it to Python-oblivious code written
> in C with Ctypes (Ralf's suggestion is good for this)
> 4. Extending CPython by connecting it to Python-aware (and specific)
> code using the CPython C-API functions (http://docs.python.org/c-api/)
For extending
On Jan 5, 2:37 pm, Terry Reedy wrote:
> Ryan wrote:
> > I've been using Python for many years now. It's a wonderful language
> > that I enjoy using everyday. I'm now interested in getting to know
> > more about the guts
>
> The 'guts' of Python the language include the object model, namespaces
> (
Ryan wrote:
I've been using Python for many years now. It's a wonderful language
that I enjoy using everyday. I'm now interested in getting to know
more about the guts
The 'guts' of Python the language include the object model, namespaces
(including modules), and the statement and infix-expres
Ryan wrote:
I've been using Python for many years now. It's a wonderful language
that I enjoy using everyday. I'm now interested in getting to know
more about the guts (C/C++) and extending it. But, extending python
still seems like a black art to me. Is there anymore docs or info on
extending it
On Jun 20, 5:56 am, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]
nomine.org> wrote:
> -On [20080619 17:11], Spectrum ([EMAIL PROTECTED]) wrote:
>
> > ImportError: dynamic module does not define init function
>
> Might be it's looking, but not finding, something like crti.S or the likes,
> the
* Jeroen Ruigrok van der Werven wrote:
> -On [20080619 17:11], Spectrum ([EMAIL PROTECTED]) wrote:
>> ImportError: dynamic module does not define init function
>
> Might be it's looking, but not finding, something like crti.S or the
> likes, the C runtime files that specify stuff like _init and
-On [20080619 17:11], Spectrum ([EMAIL PROTECTED]) wrote:
> ImportError: dynamic module does not define init function
Might be it's looking, but not finding, something like crti.S or the likes,
the C runtime files that specify stuff like _init and _fini.
--
Jeroen Ruigrok van der Werven / asmo
On Jun 19, 4:39 pm, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]
nomine.org> wrote:
> -On [20080619 16:21], Spectrum ([EMAIL PROTECTED]) wrote:
>
> > libmpi.so.0 => /usr/lib/openmpi/1.2.4-gcc/libmpi.so.0
> >(0x0042f000)
> > libopen-rte.so.0 => /usr/lib/openmpi/1.2.4-gcc/libope
-On [20080619 16:21], Spectrum ([EMAIL PROTECTED]) wrote:
> libmpi.so.0 => /usr/lib/openmpi/1.2.4-gcc/libmpi.so.0
>(0x0042f000)
> libopen-rte.so.0 => /usr/lib/openmpi/1.2.4-gcc/libopen-
>rte.so.0 (0x003d4000)
> libopen-pal.so.0 => /usr/lib/openmpi/1.2.4-gcc/libopen-
>pal.
On Jun 19, 2:10 pm, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]
nomine.org> wrote:
> -On [20080619 13:53], Spectrum ([EMAIL PROTECTED]) wrote:
>
> > ImportError: /big/School/Cluster/Opgave03/ctest.so: undefined
> >symbol: ompi_mpi_comm_world
> > [EMAIL PROTECTED] Opgave03]$
>
> > Can anyone
-On [20080619 13:53], Spectrum ([EMAIL PROTECTED]) wrote:
> ImportError: /big/School/Cluster/Opgave03/ctest.so: undefined
>symbol: ompi_mpi_comm_world
> [EMAIL PROTECTED] Opgave03]$
>
> Can anyone suggest anything? Can I get MPI to work in Python?
Sounds like a typical case of not specifying an
On Wed, 04 Jun 2008 09:12:18 -0700, spectrumdt wrote:
> Hello.
>
> I am trying to extend my Python program with some C code.
>
> This thread is sort of a follow-up to another thread of mine, linked
> below. I don't know what the conventions are in this newsgroup about
> creating new threads
On Wed, 04 Jun 2008 09:12:18 -0700, spectrumdt wrote:
> Hello.
>
> I am trying to extend my Python program with some C code.
>
> This thread is sort of a follow-up to another thread of mine, linked
> below. I don't know what the conventions are in this newsgroup about
> creating new threads
On Wed, 04 Jun 2008 09:12:18 -0700, spectrumdt wrote:
> Hello.
>
> I am trying to extend my Python program with some C code.
>
> This thread is sort of a follow-up to another thread of mine, linked
> below. I don't know what the conventions are in this newsgroup about
> creating new threads
On Jun 4, 6:25 pm, Gerhard Häring <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hello.
>
> > I am trying to extend my Python program with some C code. [...]
> > Anyway, my question is this: When compiling my C code to include in
> > Python, using a Python script with the function
[EMAIL PROTECTED] wrote:
Hello.
I am trying to extend my Python program with some C code. [...]
Anyway, my question is this: When compiling my C code to include in
Python, using a Python script with the function
distutils.core.setup... can I choose which C compiler to use? On my
system it
On Thu, 13 Sep 2007 21:26:33 -0400, Carsten Haese wrote:
> On Thu, 2007-09-13 at 18:05 -0700, Thierry Masson wrote:
>> Hello,
>>
>> I'm trying to use the C API to extend Python. I've looked at various
>> books and web sites (including the docs at python.org) and I can't get
>> any of the samples
On 9/13/07, Carsten Haese wrote:
>Your module C code uses an unknown function by the name of PyBuildValue.
>The actual name of the function you mean is Py_BuildValue.
Thank you so much, Carsten. I can't believe I missed that underscore! I'm
posting the working code below in case it ever turns out
On Thu, 2007-09-13 at 18:05 -0700, Thierry Masson wrote:
> Hello,
>
> I'm trying to use the C API to extend Python. I've looked at various
> books and web sites (including the docs at python.org) and I can't get
> any of the samples to work. Below is a very minimalist example that
> I'm trying to
Unfortunately, I need to know a bit more than just the concept 'extern
"C"'. I am really slow at this. Can anyone point me towards some
examples or a tutorial (other than the one from python.org, I didn't
understand that one)?
Thanks,
Jeremy
--
http://mail.python.org/mailman/listinfo/python-lis
Brian van den Broek said unto the world upon 29/12/05 12:03 PM:
> jeremito said unto the world upon 29/12/05 11:39 AM:
>
>>I am learning how to extend Pythong with C++. I have will be writing
>>some code in C++ and want/need Python to interact with it. I am not
>>having success following the onl
jeremito wrote:
> Oops, sorry. My question is, how can I know if my Python interpreter
> was lined by C++?
Ah. This documentation fragment is somewhat wrong: it depends on the
target operating system and compiler whether you have to link main
with a C++ compiler. For many modern systems, this isn
Oops, sorry. My question is, how can I know if my Python interpreter
was lined by C++? The non-specific questions are, of course, does
anyone have any hints or suggestions? Good websites to visit?
Thanks,
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
jeremito said unto the world upon 29/12/05 11:39 AM:
> I am learning how to extend Pythong with C++. I have will be writing
> some code in C++ and want/need Python to interact with it. I am not
> having success following the online documentation from
> http://docs.python.org/ext/ext.html. I have
"jeremito" <[EMAIL PROTECTED]> wrote:
> I have one specific question. The documentation online states:
>
> "If the main program (the Python interpreter) is compiled and linked by
> the C compiler, global or static objects with constructors cannot be
> used. This is not a problem if the main progr
31 matches
Mail list logo