Re: [Cython] Expected errors of tests/errors/cdef_members_T517.pxd

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 6:34 PM, W. Trevor King wrote: > On Sat, Feb 26, 2011 at 10:15:38AM -0800, Robert Bradshaw wrote: >> On Sat, Feb 26, 2011 at 5:08 AM, W. Trevor King wrote: >> > The relevant lines from tests/errors/cdef_members_T517.pxd are: >> > >> >    $ grep -n ^ tests/errors/cdef_membe

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

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 6:14 PM, W. Trevor King wrote: > On Sat, Feb 26, 2011 at 10:01:43AM -0800, Robert Bradshaw wrote: >> On Sat, Feb 26, 2011 at 3:48 AM, W. Trevor King wrote: >> > On Fri, Feb 25, 2011 at 11:11:03PM -0800, Robert Bradshaw wrote: >> >> On Tue, Feb 22, 2011 at 12:02 PM, W. Trev

Re: [Cython] Expected errors of tests/errors/cdef_members_T517.pxd

2011-02-26 Thread W. Trevor King
On Sat, Feb 26, 2011 at 10:15:38AM -0800, Robert Bradshaw wrote: > On Sat, Feb 26, 2011 at 5:08 AM, W. Trevor King wrote: > > The relevant lines from tests/errors/cdef_members_T517.pxd are: > > > >$ grep -n ^ tests/errors/cdef_members_T517.pyx > >... > >8:ctypedef struct Foo: > >9:

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

2011-02-26 Thread W. Trevor King
On Sat, Feb 26, 2011 at 10:01:43AM -0800, Robert Bradshaw wrote: > On Sat, Feb 26, 2011 at 3:48 AM, W. Trevor King wrote: > > On Fri, Feb 25, 2011 at 11:11:03PM -0800, Robert Bradshaw wrote: > >> On Tue, Feb 22, 2011 at 12:02 PM, W. Trevor King wrote: > >> > An easy, if uglier, workaround would b

Re: [Cython] Expected errors of tests/errors/cdef_members_T517.pxd

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 5:08 AM, W. Trevor King wrote: > I'm splitting Symtab visibilities into explicit C and Python > visibilities, but am having trouble reproducing the expected error > messages for cdef_members_T517: > >    $ python runtests.py cdef_members_T517 >    Python 2.6.6 (r266:84292,

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

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 3:48 AM, W. Trevor King wrote: > On Fri, Feb 25, 2011 at 11:11:03PM -0800, Robert Bradshaw wrote: >> On Tue, Feb 22, 2011 at 12:02 PM, W. Trevor King wrote: >> > An easy, if uglier, workaround would be to prepend attributes with the >> > class name, e.g. CBinding.visibilit

[Cython] Expected errors of tests/errors/cdef_members_T517.pxd

2011-02-26 Thread W. Trevor King
I'm splitting Symtab visibilities into explicit C and Python visibilities, but am having trouble reproducing the expected error messages for cdef_members_T517: $ python runtests.py cdef_members_T517 Python 2.6.6 (r266:84292, Dec 8 2010, 09:53:33) [GCC 4.4.4] Running tests against

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

2011-02-26 Thread W. Trevor King
On Fri, Feb 25, 2011 at 11:11:03PM -0800, Robert Bradshaw wrote: > On Tue, Feb 22, 2011 at 12:02 PM, W. Trevor King wrote: > > An easy, if uglier, workaround would be to prepend attributes with the > > class name, e.g. CBinding.visibility -> CBinding.c_binding_visiblity. > > Then the Ctx class cou