[Cython] 0.16.1

mark florisson markflorisson88 at gmail.com
Thu May 10 22:24:54 CEST 2012

On 10 May 2012 21:21, Stefan Behnel <stefan_ml at behnel.de> wrote:
> mark florisson, 10.05.2012 21:13:
>> On 9 May 2012 08:49, Stefan Behnel wrote:
>>> Stefan Behnel, 09.05.2012 08:41:
>>>> Robert Bradshaw, 09.05.2012 00:16:
>>>>> If we're looking at doing 0.17 soon, lets just do that.
>>>> I think it's close enough to be released.
>>> ... although one thing I just noticed is that the "numpy_memoryview" test
>>> is still disabled because it lead to crashes in recent Py3.2 releases (and
>>> thus most likely also in the latest Py3k). Not sure if it still crashes,
>>> but should be checked before going for a release.
>> Hurgh. Disabling tests in bugs.txt is terrible, there should have been
>> a comment in numpy_memoryview saying DISABLED and the testcase
>> function should have been a noop.
> ... or have a release mode in the test runner that barks at disabled tests.
>> Your commit
>> e3838e42c4b6f67f180d06b8cd75566f3380ab95 broke how typedef types are
>> compared, which makes the test get a temporary of the wrong type. Let
>> me try reverting that commit, what was it needed for?
> It was meant to fix the comparison of different char* ctypedefs. However,
> seeing it in retrospect now, it would definitely break user code to compare
> ctypedefs by their underlying base type because it's common for users to be
> lax about ctypedefs, e.g. for integer types.
> I think a better (and substantially safer) way to do it would be to use the
> hash value of the underlying declared type, but to make the equals
> comparison based on the typedef-ed name. That, plus a special case
> treatment for char* compatible types.

Yeah, I was thinking the same thing. I pushed a reverted commit, if
you want you can try out that scheme and see if it works.

> Thanks for figuring out the problem.

No problem. We learned that disabled tests aren't very good for
continuous integration now :)

> Stefan
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel

More information about the cython-devel mailing list