Re: [Cython] Ctypes object <-> pointer conversion.

2011-08-04 Thread Dag Sverre Seljebotn
On 08/05/2011 01:31 AM, Robert Bradshaw wrote: This is getting a bit OT but is worth discussing, so I'm starting a new thread. On Thu, Aug 4, 2011 at 2:51 PM, Greg Ewing wrote: Dag Sverre Seljebotn wrote: - One idea is coercion of C pointers to ctypes Python objects and back again. Some

Re: [Cython] object to struct conversion

2011-08-04 Thread Robert Bradshaw
On Wed, Aug 3, 2011 at 2:09 PM, mark florisson wrote: > On 3 August 2011 19:36, Robert Bradshaw wrote: >> On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel wrote: >>> mark florisson, 03.08.2011 16:28: Is there any specific reason objects cannot coerce to structs (from e.g. dicts?). It

[Cython] Ctypes object <-> pointer conversion.

2011-08-04 Thread Robert Bradshaw
This is getting a bit OT but is worth discussing, so I'm starting a new thread. On Thu, Aug 4, 2011 at 2:51 PM, Greg Ewing wrote: > Dag Sverre Seljebotn wrote: > >>  - One idea is coercion of C pointers to ctypes Python objects and back >> again. > > Some way of requesting this manually might be

Re: [Cython] Willing to contribute

2011-08-04 Thread Greg Ewing
Dag Sverre Seljebotn wrote: - One idea is coercion of C pointers to ctypes Python objects and back again. Some way of requesting this manually might be useful, but I don't think I'd like it to happen automatically. Slinging raw pointers around in Python isn't something to be done lightly -- e

Re: [Cython] Willing to contribute

2011-08-04 Thread Stefan Behnel
Stefano, 03.08.2011 22:53: I've been a enthusiast Python programmer for 3 years now, and I've hailed Cython project with great interest. Now, I'm willing to contribute. Cool. Since no-one pointed you there yet, there's a hacking guide with some hints to get you started: http://wiki.cython.or

Re: [Cython] Willing to contribute

2011-08-04 Thread Dag Sverre Seljebotn
On 08/03/2011 10:53 PM, Stefano wrote: Hi everybody, I've been a enthusiast Python programmer for 3 years now, and I've hailed Cython project with great interest. Now, I'm willing to contribute. I've would say I'm an quite an expert Python programmer and I've some-year-long experience with C, mo

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-04 Thread Vitja Makarov
2011/8/4 Stefan Behnel : > Vitja Makarov, 03.08.2011 21:07: Stefan, do you know why skip_dispatch argument is used for module-level cpdef function? There is warning about that too. > > It seems you already found a way to handle it. > > >>> And here is my branch for unused_a