Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Greg Ewing
Stefan Behnel wrote: The same argument could be brought up against "cdef" vs. "def" (between which the semantic difference is *huge*) There are a couple of differences: - 'cdef' and 'def' look very different (at least to me) because they *start* with a different letter. Whereas 'cdef' and 'c

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Stefan Behnel
Greg Ewing, 21.02.2011 22:12: Stefan Behnel wrote: With "preferred way", I was suggesting that we could *deprecate* cdef public int x cdef readonly object y for cdef class properties in favour of cpdef int x cpdef readonly object y I think I've just realised one of the reasons for my gut d

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Greg Ewing
Stefan Behnel wrote: With "preferred way", I was suggesting that we could *deprecate* cdef public int x cdef readonly object y for cdef class properties in favour of cpdef int x cpdef readonly object y I think I've just realised one of the reasons for my gut dislike of the "

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Robert Bradshaw
On Mon, Feb 21, 2011 at 10:26 AM, Stefan Behnel wrote: > Robert Bradshaw, 21.02.2011 19:11: >> >> On Sun, Feb 20, 2011 at 1:26 AM, Stefan Behnel wrote: >>> >>> W. Trevor King, 20.02.2011 00:31: On Sat, Feb 19, 2011 at 02:04:16PM -0800, Robert Bradshaw wrote: > > On Sat, Feb 19, 2

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Lisandro Dalcin
On 21 February 2011 15:26, Stefan Behnel wrote: > Robert Bradshaw, 21.02.2011 19:11: >> >> On Sun, Feb 20, 2011 at 1:26 AM, Stefan Behnel wrote: >>> >>> W. Trevor King, 20.02.2011 00:31: On Sat, Feb 19, 2011 at 02:04:16PM -0800, Robert Bradshaw wrote: > > On Sat, Feb 19, 2011 at

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Stefan Behnel
Robert Bradshaw, 21.02.2011 19:11: On Sun, Feb 20, 2011 at 1:26 AM, Stefan Behnel wrote: W. Trevor King, 20.02.2011 00:31: On Sat, Feb 19, 2011 at 02:04:16PM -0800, Robert Bradshaw wrote: On Sat, Feb 19, 2011 at 1:45 PM, W. Trevor King wrote: It is unclear to me what `cdef public struct` m

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Robert Bradshaw
On Sun, Feb 20, 2011 at 1:26 AM, Stefan Behnel wrote: > W. Trevor King, 20.02.2011 00:31: >> >> On Sat, Feb 19, 2011 at 02:04:16PM -0800, Robert Bradshaw wrote: >>> >>> On Sat, Feb 19, 2011 at 1:45 PM, W. Trevor King wrote: It is unclear to me what `cdef public struct` means.  I think it

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-21 Thread Greg Ewing
Stefan Behnel wrote: Given that Cython has "cpdef" already, why not just use that? That seems like a reasonable idea. -- Greg ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel