Re: [Cython] [cython-users] Re: New function (pointer) syntax.

2014-11-10 Thread Robert Bradshaw
On Sun, Nov 9, 2014 at 1:29 PM, Nils Bruin wrote: > On Saturday, November 8, 2014 12:15:02 PM UTC-8, Sturla Molden wrote: >> >> Presumably Cython >> needs C and C++ function and method pointer syntax for wrapping C and C++ >> libraries, so why add another one? > > > I think that's a valid point. T

Re: [Cython] New function (pointer) syntax.

2014-11-10 Thread Dima Pasechnik
On 2014-11-06, Robert Bradshaw wrote: > I'd like to propose a more pythonic way to declare function pointer > types, namelye > > type0 (*[ident])(type1, type2, type3) > > would instead become > > (type1, type2, type3) -> type0 [ident] > > I have a pull request up at https://github.com/cyth

Re: [Cython] New function (pointer) syntax.

2014-11-10 Thread Robert Bradshaw
On Mon, Nov 10, 2014 at 6:25 AM, Dima Pasechnik wrote: > On 2014-11-06, Robert Bradshaw wrote: >> I'd like to propose a more pythonic way to declare function pointer >> types, namelye >> >> type0 (*[ident])(type1, type2, type3) >> >> would instead become >> >> (type1, type2, type3) -> typ

Re: [Cython] New function (pointer) syntax.

2014-11-10 Thread Dima Pasechnik
On 10 November 2014 20:23, Robert Bradshaw wrote: > On Mon, Nov 10, 2014 at 6:25 AM, Dima Pasechnik wrote: >> On 2014-11-06, Robert Bradshaw wrote: >>> I'd like to propose a more pythonic way to declare function pointer >>> types, namelye >>> >>> type0 (*[ident])(type1, type2, type3) >>> >>>

[Cython] Compiler crash in cython 0.21.1 DebugTransform

2014-11-10 Thread Rich Leigh
Hi all - I get the following compiler crash from cython 0.21.1 (from pip) when compiling a C++ module with debugging. It's fine without the --gdb option. [1/3] Compiling Cython CXX source for [project]... FAILED: cd [project_build] && cython --cplus -I [project_src] -2 --gdb --output-file [project

Re: [Cython] New function (pointer) syntax.

2014-11-10 Thread Robert Bradshaw
On Mon, Nov 10, 2014 at 1:10 PM, Dima Pasechnik wrote: > On 10 November 2014 20:23, Robert Bradshaw wrote: >> On Mon, Nov 10, 2014 at 6:25 AM, Dima Pasechnik wrote: >>> On 2014-11-06, Robert Bradshaw wrote: I'd like to propose a more pythonic way to declare function pointer types, nam