Re: [Cython] Two minor bugs

2013-03-02 Thread Robert Bradshaw
On Fri, Mar 1, 2013 at 10:52 PM, Nikita Nemkin wrote: > Hi, > > I'm new to this list and to Cython internals. > > Reporting two recently found bugs: > > 1. Explicit cast fails unexpectedly: > >ctypedef char* LPSTR >cdef LPSTR c_str = b"ascii" >c_str # Failure: Python obje

[Cython] Two minor bugs

2013-03-01 Thread Nikita Nemkin
Hi, I'm new to this list and to Cython internals. Reporting two recently found bugs: 1. Explicit cast fails unexpectedly: ctypedef char* LPSTR cdef LPSTR c_str = b"ascii" c_str # Failure: Python objects cannot be cast from pointers of primitive types The problem i