Re: [Cython] Header file bug

2011-06-09 Thread Robert Bradshaw
I agree. We welcome improvement to our documentation--fork and make a push request: https://github.com/cython/cython/tree/master/docs On Thu, Jun 9, 2011 at 4:49 AM, Seth Shannin wrote: > One note: I personally found the documentation on how to make a class > declaration public fairly hard to fin

Re: [Cython] Header file bug

2011-06-09 Thread Seth Shannin
One note: I personally found the documentation on how to make a class declaration public fairly hard to find. It could be nice to make this clearer. -Seth On 06/09/2011 01:57 AM, Robert Bradshaw wrote: > I agree. > > On Wed, Jun 8, 2011 at 9:47 AM, wrote: >> Yeah, I think just erroring would

Re: [Cython] Header file bug

2011-06-08 Thread Robert Bradshaw
I agree. On Wed, Jun 8, 2011 at 9:47 AM, wrote: > Yeah, I think just erroring would be perfectly reasonable. > > -Seth > > Quoting "Greg Ewing" : > >> Seth Shannin wrote: >>> >>> I would still make the case that currently >>> something is a bit off in that the header file tries to use something

Re: [Cython] Header file bug

2011-06-08 Thread sshannin
Yeah, I think just erroring would be perfectly reasonable. -Seth Quoting "Greg Ewing" : Seth Shannin wrote: I would still make the case that currently something is a bit off in that the header file tries to use something which it has no information about Yes, I agree that it could do with i

Re: [Cython] Header file bug

2011-06-08 Thread Greg Ewing
Seth Shannin wrote: I would still make the case that currently something is a bit off in that the header file tries to use something which it has no information about Yes, I agree that it could do with improvement. I'm not sure that automatically putting the struct declaration in the header is

Re: [Cython] Header file bug

2011-06-07 Thread Seth Shannin
Ah, that's what it means. I saw something similar to this somewhere in some documentation, but the object keyword threw me off. To me, 'object' indicates something more on the python side than on the c side. Also, even though you can do this to ensure the struct declaration ends up in the header

Re: [Cython] Header file bug

2011-06-07 Thread Greg Ewing
On Sat, Jun 4, 2011 at 10:36 AM, Seth Shannin wrote: test.h:11: warning: 'struct __pyx_obj_4test_foo' declared inside parameter list test.h:11: warning: its scope is only this definition or declaration, which is probably not what you want Not sure about Cython, but the way to to this in Pyrex

Re: [Cython] Header file bug

2011-06-06 Thread Robert Bradshaw
On Sat, Jun 4, 2011 at 10:36 AM, Seth Shannin wrote: > Hello all, > > First, I tried to post this earlier but am pretty sure it didn't go through. >  If this is a double, I apologize. > > This comes out of a discussion on the cython-users list.  I am getting some > warnings when using cython to co

[Cython] Header file bug

2011-06-04 Thread Seth Shannin
Hello all, First, I tried to post this earlier but am pretty sure it didn't go through. If this is a double, I apologize. This comes out of a discussion on the cython-users list. I am getting some warnings when using cython to compile a python module and then calling into the module from c