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

2011-02-20 Thread W. Trevor King
On Mon, Feb 21, 2011 at 10:09:42AM +1300, Greg Ewing wrote: > W. Trevor King wrote: > > Hmm, that means that > > > > cimport numpy > > a = numpy.numpy.ndarray > > > > also compiles. > > Compiles and runs, or just compiles? You're right. Cython compilation worked, but it didn't run:

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

2011-02-20 Thread Greg Ewing
W. Trevor King wrote: On Sat, Feb 19, 2011 at 04:41:27PM -0800, Robert Bradshaw wrote: On Sat, Feb 19, 2011 at 3:31 PM, W. Trevor King wrote: cython $ grep class Cython/Includes/numpy.pxd ctypedef class numpy.dtype [object PyArray_Descr]: ctypedef extern class numpy.flatiter [o

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

2011-02-20 Thread Stefan Behnel
Greg Ewing, 20.02.2011 21:13: Robert Bradshaw wrote: BTW, the "public" keyword is the wrong thing to use here, as that actually controls name mangling and (c-level) symbol exporting. The fact that means a different thing for members than for top-level symbols isn't ideal, but at least it's unam

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

2011-02-20 Thread Greg Ewing
Robert Bradshaw wrote: BTW, the "public" keyword is the wrong thing to use here, as that actually controls name mangling and (c-level) symbol exporting. The fact that means a different thing for members than for top-level symbols isn't ideal, but at least it's unambiguous as members need not be

Re: [Cython] Control flow graph

2011-02-20 Thread Vitja Makarov
2011/2/16 Vitja Makarov : > 2011/2/15 Stefan Behnel : >> Robert Bradshaw, 15.02.2011 08:21: >>> >>> On Mon, Feb 14, 2011 at 9:49 PM, Vitja Makarov wrote: 2011/2/15 Robert Bradshaw: > > On Sun, Feb 13, 2011 at 11:40 PM, Vitja Makarov wrote: >> >> Hi! >> >> In order

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

2011-02-20 Thread Stefan Behnel
W. Trevor King, 20.02.2011 03:32: On Sat, Feb 19, 2011 at 04:41:27PM -0800, Robert Bradshaw wrote: On Sat, Feb 19, 2011 at 3:31 PM, W. Trevor King wrote: I think it's better to keep cdef meaning "backed by C data", not necessarily "written using C syntax", since you're trying to do more with Cy

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

2011-02-20 Thread Stefan Behnel
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 should mean "Python bindings can alter this struct's definition", which does

Re: [Cython] Gmane archive

2011-02-20 Thread Stefan Behnel
Stefan Behnel, 18.02.2011 05:50: I still didn't get a response from Gmane, but this article doesn't look promising: http://article.gmane.org/gmane.discuss/13987 So I guess we'll have to request a new group. Very unfortunate. They've updated the group subscription. Turns out that changing Gman