Re: [Cython] Declaration syntax change

2013-10-03 Thread Robert Bradshaw
On Thu, Oct 3, 2013 at 3:06 PM, Chuck Blake wrote: > Robert Bradshaw [rober...@gmail.com] wrote: >>Yes, it still is. But it would be nice to get any such major changes >>out of the way ahead of time. > > I think the "compiling Python" goal is so orthogonal to the goal of > how "beyond Python synta

Re: [Cython] Declaration syntax change

2013-10-03 Thread Chuck Blake
Robert Bradshaw [rober...@gmail.com] wrote: >Yes, it still is. But it would be nice to get any such major changes >out of the way ahead of time. I think the "compiling Python" goal is so orthogonal to the goal of how "beyond Python syntax work" or simplicity of the parsing impl that "getting it ou

Re: [Cython] Declaration syntax change

2013-10-03 Thread Robert Bradshaw
On Thu, Oct 3, 2013 at 9:30 AM, Chuck Blake wrote: > Greg Ewing wrote: >>What would be the benefit of this? You're proposing to change >>from something identical to C declaration syntax, which is >>second nature for a great many people, to something that >>looks deceptively like C syntax but isn't

Re: [Cython] Declaration syntax change

2013-10-03 Thread Robert Bradshaw
On Thu, Oct 3, 2013 at 10:21 AM, Nathaniel Smith wrote: > On Thu, Oct 3, 2013 at 5:03 PM, Robert Bradshaw wrote: >> On Thu, Oct 3, 2013 at 7:13 AM, Nathaniel Smith wrote: >>> On Thu, Oct 3, 2013 at 3:00 PM, Stefan Behnel wrote: Nathaniel Smith, 03.10.2013 14:35: > On Thu, Oct 3, 2013 a

Re: [Cython] Declaration syntax change

2013-10-03 Thread Nathaniel Smith
On Thu, Oct 3, 2013 at 5:03 PM, Robert Bradshaw wrote: > On Thu, Oct 3, 2013 at 7:13 AM, Nathaniel Smith wrote: >> On Thu, Oct 3, 2013 at 3:00 PM, Stefan Behnel wrote: >>> Nathaniel Smith, 03.10.2013 14:35: On Thu, Oct 3, 2013 at 1:23 PM, Stefan Behnel wrote: > Greg Ewing, 03.10.2013 14

Re: [Cython] Declaration syntax change

2013-10-03 Thread Chuck Blake
Greg Ewing wrote: >What would be the benefit of this? You're proposing to change >from something identical to C declaration syntax, which is >second nature for a great many people, to something that >looks deceptively like C syntax but isn't. > >I can't see that causing anything other than a massiv

Re: [Cython] Declaration syntax change

2013-10-03 Thread Robert Bradshaw
On Thu, Oct 3, 2013 at 7:13 AM, Nathaniel Smith wrote: > On Thu, Oct 3, 2013 at 3:00 PM, Stefan Behnel wrote: >> Nathaniel Smith, 03.10.2013 14:35: >>> On Thu, Oct 3, 2013 at 1:23 PM, Stefan Behnel wrote: Greg Ewing, 03.10.2013 14:10: > Robert Bradshaw wrote: >> cdef int *a, b, c

Re: [Cython] Declaration syntax change

2013-10-03 Thread Nathaniel Smith
On Thu, Oct 3, 2013 at 3:00 PM, Stefan Behnel wrote: > Nathaniel Smith, 03.10.2013 14:35: >> On Thu, Oct 3, 2013 at 1:23 PM, Stefan Behnel wrote: >>> Greg Ewing, 03.10.2013 14:10: Robert Bradshaw wrote: > cdef int *a, b, c, *d[3] > > is IMHO quite ugly but also adds a lot of c

Re: [Cython] Declaration syntax change

2013-10-03 Thread Stefan Behnel
Nathaniel Smith, 03.10.2013 14:35: > On Thu, Oct 3, 2013 at 1:23 PM, Stefan Behnel wrote: >> Greg Ewing, 03.10.2013 14:10: >>> Robert Bradshaw wrote: cdef int *a, b, c, *d[3] is IMHO quite ugly but also adds a lot of complexity to the parser. What if instead we required

Re: [Cython] Declaration syntax change

2013-10-03 Thread Nathaniel Smith
On Thu, Oct 3, 2013 at 1:23 PM, Stefan Behnel wrote: > Greg Ewing, 03.10.2013 14:10: >> Robert Bradshaw wrote: >>> cdef int *a, b, c, *d[3] >>> >>> is IMHO quite ugly but also adds a lot of complexity to the parser. >>> What if instead we required >>> >>> cdef int* a >>> cdef int b, c

Re: [Cython] Declaration syntax change

2013-10-03 Thread Stefan Behnel
Greg Ewing, 03.10.2013 14:10: > Robert Bradshaw wrote: >> cdef int *a, b, c, *d[3] >> >> is IMHO quite ugly but also adds a lot of complexity to the parser. >> What if instead we required >> >> cdef int* a >> cdef int b, c >> cdef int[3]* d The last line looks ambiguous, BTW, hadn'

Re: [Cython] Declaration syntax change

2013-10-03 Thread Greg Ewing
Robert Bradshaw wrote: cdef int *a, b, c, *d[3] is IMHO quite ugly but also adds a lot of complexity to the parser. What if instead we required cdef int* a cdef int b, c cdef int[3]* d What would be the benefit of this? You're proposing to change from something identical to C

Re: [Cython] Declaration syntax change

2013-10-03 Thread Stefan Behnel
Robert Bradshaw, 03.10.2013 05:38: > In thinking about 1.0, this would be a chance to make > backwards-incompatible changes. One thing that has always bothered me > is the C-delclarator decoration for specifying complex types. > Specifically, > > cdef int *a, b, c, *d[3] > > is IMHO quite ugl

[Cython] Memory leak when using Typed Memory View and np array of objects

2013-10-03 Thread Haijie Gu
Hi, I'm new to cython's typed memory view, and found some cases where the function that uses typed memory view has memory leaking. The leak happens when I pass a numpy array of objects, where each object itself is a numpy array.( You can get this 'weird' object from construction a pandas Series wi