Re: [Cython] 2d buffer interface with aligned data

2012-07-17 Thread Stefan Behnel
Christian Heimes, 17.07.2012 22:55: > Am 17.07.2012 18:55, schrieb Dag Sverre Seljebotn: >> Read PEP 3118. Then implement __getbuffer__ and __releasebuffer__ in >> your cdef class (don't know if it's documented but you can see example >> in tests/run/buffer.pyx). > > The new buffer interface from

Re: [Cython] 2d buffer interface with aligned data

2012-07-17 Thread Nathaniel Smith
On Tue, Jul 17, 2012 at 9:55 PM, Christian Heimes wrote: > Am 17.07.2012 18:55, schrieb Dag Sverre Seljebotn: >> Read PEP 3118. Then implement __getbuffer__ and __releasebuffer__ in >> your cdef class (don't know if it's documented but you can see example >> in tests/run/buffer.pyx). > > The new b

[Cython] known? 0.16 on varioius platforms: ValueError: Buffer dtype mismatch, expected 'char' but got 'unsigned char' in ...

2012-07-17 Thread Yaroslav Halchenko
Hi everyone! 1. uploaded 0.16 to Debian experimental... many platforms fail with smth like ,-- | == | FAIL: Doctest: memslice.__test__.test_padded_structs | -- |

Re: [Cython] 2d buffer interface with aligned data

2012-07-17 Thread Christian Heimes
Am 17.07.2012 18:55, schrieb Dag Sverre Seljebotn: > Read PEP 3118. Then implement __getbuffer__ and __releasebuffer__ in > your cdef class (don't know if it's documented but you can see example > in tests/run/buffer.pyx). The new buffer interface from PEP 3118 is only available for Python 2.6 and

Re: [Cython] 2d buffer interface with aligned data

2012-07-17 Thread Dag Sverre Seljebotn
On 07/17/2012 05:38 PM, Christian Heimes wrote: Hello, I'm the author of https://bitbucket.org/tiran/smc.freeimage , a Cython wrapper of the FreeImage and LCMS libraries. FreeImage supports a broad variety of image formats and pixel formats from standard RGB up to RGBAF and complex numbers. Now

Re: [Cython] 2d buffer interface with aligned data

2012-07-17 Thread Dag Sverre Seljebotn
On 07/17/2012 06:55 PM, Dag Sverre Seljebotn wrote: On 07/17/2012 05:38 PM, Christian Heimes wrote: Hello, I'm the author of https://bitbucket.org/tiran/smc.freeimage , a Cython wrapper of the FreeImage and LCMS libraries. FreeImage supports a broad variety of image formats and pixel formats fr

[Cython] 2d buffer interface with aligned data

2012-07-17 Thread Christian Heimes
Hello, I'm the author of https://bitbucket.org/tiran/smc.freeimage , a Cython wrapper of the FreeImage and LCMS libraries. FreeImage supports a broad variety of image formats and pixel formats from standard RGB up to RGBAF and complex numbers. Now I like to add support for buffer interface to my

Re: [Cython] failing memory view tests in Python 2.4/5

2012-07-17 Thread mark florisson
On 17 July 2012 12:12, Stefan Behnel wrote: > mark florisson, 17.07.2012 12:15: >> On 17 July 2012 09:58, Stefan Behnel wrote: >>> mark florisson, 10.07.2012 11:20: Perhaps we should run the 2x tests from py27 down to 2.4. Tests in newer python's are less likely to fail. >>> >>> Tes

Re: [Cython] failing memory view tests in Python 2.4/5

2012-07-17 Thread Stefan Behnel
mark florisson, 17.07.2012 12:15: > On 17 July 2012 09:58, Stefan Behnel wrote: >> mark florisson, 10.07.2012 11:20: >>> Perhaps we should run >>> the 2x tests from py27 down to 2.4. Tests in newer python's are less >>> likely to fail. >> >> Test failures are bad in general, though. Just because yo

Re: [Cython] merging _refactor_indexnode branch

2012-07-17 Thread Stefan Behnel
mark florisson, 17.07.2012 12:20: > On 17 July 2012 10:02, Stefan Behnel wrote: >> mark florisson, 10.07.2012 11:20: >>> Do you want _refactor_indexnode merged for this release? >> >> I was ok with it when I first skipped over it. It would be good to give it >> another pair of eyeballs, but apart f

Re: [Cython] merging _refactor_indexnode branch (was: failing memory view tests in Python 2.4/5)

2012-07-17 Thread mark florisson
On 17 July 2012 10:02, Stefan Behnel wrote: > mark florisson, 10.07.2012 11:20: >> Do you want _refactor_indexnode merged for this release? > > I was ok with it when I first skipped over it. It would be good to give it > another pair of eyeballs, but apart from that, yes, I think it should go > in

Re: [Cython] failing memory view tests in Python 2.4/5

2012-07-17 Thread mark florisson
On 17 July 2012 09:58, Stefan Behnel wrote: > mark florisson, 10.07.2012 11:20: >> On 10 July 2012 08:24, Stefan Behnel wrote: >>> I've fixed some of the errors that current block the tests. The remaining >>> failures in the memory view tests exist in both Py2.4 and 2.5, which hints >>> at a probl

[Cython] merging _refactor_indexnode branch (was: failing memory view tests in Python 2.4/5)

2012-07-17 Thread Stefan Behnel
mark florisson, 10.07.2012 11:20: > Do you want _refactor_indexnode merged for this release? I was ok with it when I first skipped over it. It would be good to give it another pair of eyeballs, but apart from that, yes, I think it should go in. I'll merge it as soon as Jenkins is happy with the te

Re: [Cython] failing memory view tests in Python 2.4/5

2012-07-17 Thread Stefan Behnel
mark florisson, 10.07.2012 11:20: > On 10 July 2012 08:24, Stefan Behnel wrote: >> I've fixed some of the errors that current block the tests. The remaining >> failures in the memory view tests exist in both Py2.4 and 2.5, which hints >> at a problem with the buffer support in numpy.pxd. >> >> http