Re: [Cython] Cython 0.17.2 released

2012-12-03 Thread Yaroslav Halchenko


shouldn't there be 
http://wiki.cython.org/ReleaseNotes-0.17.2
? ;-)

> Complete changelog:

> 0.17.2 (2012-11-20)
> ===

> Features added
> --

> * ``cythonize()`` gained a best effort compile mode that can be used to
> simply ignore .py files that fail to compile.

> Bugs fixed
> --

> * Replacing an object reference with the value of one of its cdef
> attributes could generate incorrect C code that accessed the object after
> deleting its last reference.

> * C-to-Python type coercions during cascaded comparisons could generate
> invalid C code, specifically when using the 'in' operator.

> * "obj[1,]" passed a single integer into the item getter instead of a tuple.

> * Cyclic imports at module init time did not work in Py3.

> * The names of C++ destructors for template classes were built incorrectly.

> * In pure mode, type casts in Cython syntax and the C ampersand operator
> are now rejected. Use the pure mode replacements instead.

> * In pure mode, C type names and the sizeof() function are no longer
> recognised as such and can be used as normal Python names.

> * The extended C level support for the CPython array type was declared too
> late to be used by user defined classes.

> * C++ class nesting was broken.

> * Better checking for required nullary constructors for stack-allocated C++
> instances.

> * Remove module docstring in no-docstring mode.

> * Fix specialization for varargs function signatures.

> * Fix several compiler crashes.


-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834   Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Cython 0.17.2 released

2012-12-03 Thread Yaroslav Halchenko
congrats!

please do not forget to push git tag  for 0.17.2 ;)

On Tue, 20 Nov 2012, Stefan Behnel wrote:

> Hi everyone,

> I'm happy to announce the release of Cython 0.17.2. This is a (mostly) bug
> fix release for the stable 0.17 release series.

> http://pypi.python.org/pypi/Cython/0.17.2

> Direct downloads:

> http://cython.org/release/Cython-0.17.2.tar.gz

> http://cython.org/release/Cython-0.17.2.zip

> Github version:

> https://github.com/cython/cython/commit/10183d61eb5cf33e6912dec2ab09740498f0947c

> Have fun,

> Stefan


> Complete changelog:

> 0.17.2 (2012-11-20)
> ===

> Features added
> --

> * ``cythonize()`` gained a best effort compile mode that can be used to
> simply ignore .py files that fail to compile.

> Bugs fixed
> --

> * Replacing an object reference with the value of one of its cdef
> attributes could generate incorrect C code that accessed the object after
> deleting its last reference.

> * C-to-Python type coercions during cascaded comparisons could generate
> invalid C code, specifically when using the 'in' operator.

> * "obj[1,]" passed a single integer into the item getter instead of a tuple.

> * Cyclic imports at module init time did not work in Py3.

> * The names of C++ destructors for template classes were built incorrectly.

> * In pure mode, type casts in Cython syntax and the C ampersand operator
> are now rejected. Use the pure mode replacements instead.

> * In pure mode, C type names and the sizeof() function are no longer
> recognised as such and can be used as normal Python names.

> * The extended C level support for the CPython array type was declared too
> late to be used by user defined classes.

> * C++ class nesting was broken.

> * Better checking for required nullary constructors for stack-allocated C++
> instances.

> * Remove module docstring in no-docstring mode.

> * Fix specialization for varargs function signatures.

> * Fix several compiler crashes.
> ___
> cython-devel mailing list
> cython-devel@python.org
> http://mail.python.org/mailman/listinfo/cython-devel


-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834   Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


[Cython] (no subject)

2012-12-03 Thread Yaroslav Halchenko
reproduced with cython 0.17.2 (+ few post release fixes), originally
detected/reported [1] with  0.17.1 on Debian systems using debug build of
Python:

$> python-dbg -c 'import pyximport as pi; pi.install(); import weakfail; 
s=weakfail.foo(42)'
python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion `gc->gc.gc_refs 
!= 0' failed.
[1]12648 abort  python-dbg -c 

$> cat weakfail.pyx 
import weakref
foo_dict = weakref.WeakValueDictionary()

cdef class Foo:
cdef object __weakref__

def foo(key):
obj = Foo()
foo_dict[key] = obj
return obj


it seems to work fine with cython 0.15.2 .  Any ideas?  requires separate/new 
bug report?

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692313
-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834   Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion `gc->gc.gc_refs != 0' failed

2012-12-03 Thread Yaroslav Halchenko
pardon the initial absence of subject

On Mon, 03 Dec 2012, Yaroslav Halchenko wrote:

> reproduced with cython 0.17.2 (+ few post release fixes), originally
> detected/reported [1] with  0.17.1 on Debian systems using debug build of
> Python:

> $> python-dbg -c 'import pyximport as pi; pi.install(); import weakfail; 
> s=weakfail.foo(42)'
> python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion 
> `gc->gc.gc_refs != 0' failed.
> [1]12648 abort  python-dbg -c 

> $> cat weakfail.pyx 
> import weakref
> foo_dict = weakref.WeakValueDictionary()

> cdef class Foo:
> cdef object __weakref__

> def foo(key):
> obj = Foo()
> foo_dict[key] = obj
> return obj


> it seems to work fine with cython 0.15.2 .  Any ideas?  requires separate/new 
> bug report?

> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692313
-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834   Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] (no subject)

2012-12-03 Thread Bradley M. Froehle
I ran `git bisect`:

d96dfdbb290d23bf3b4a186dc5b1b5d9ee7fcaa5 is the first bad commit
commit d96dfdbb290d23bf3b4a186dc5b1b5d9ee7fcaa5
Author: Mark Florisson 
Date:   Tue Apr 10 15:01:00 2012 +0100

Decref memoryview slice class attributes

https://github.com/cython/cython/commit/d96dfdbb290d23bf3b4a186dc5b1b5d9ee7fcaa5

-Brad

On Mon, Dec 3, 2012 at 1:10 PM, Yaroslav Halchenko wrote:

> reproduced with cython 0.17.2 (+ few post release fixes), originally
> detected/reported [1] with  0.17.1 on Debian systems using debug build of
> Python:
>
> $> python-dbg -c 'import pyximport as pi; pi.install(); import weakfail;
> s=weakfail.foo(42)'
> python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion
> `gc->gc.gc_refs != 0' failed.
> [1]12648 abort  python-dbg -c
>
> $> cat weakfail.pyx
> import weakref
> foo_dict = weakref.WeakValueDictionary()
>
> cdef class Foo:
> cdef object __weakref__
>
> def foo(key):
> obj = Foo()
> foo_dict[key] = obj
> return obj
>
>
> it seems to work fine with cython 0.15.2 .  Any ideas?  requires
> separate/new bug report?
>
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692313
> --
> Yaroslav O. Halchenko
> Postdoctoral Fellow,   Department of Psychological and Brain Sciences
> Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
> Phone: +1 (603) 646-9834   Fax: +1 (603) 646-1419
> WWW:   http://www.linkedin.com/in/yarik
> ___
> cython-devel mailing list
> cython-devel@python.org
> http://mail.python.org/mailman/listinfo/cython-devel
>
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel