Re: [Cython] [cython] Initial startswith / endswith optimization (#35)

2011-05-25 Thread Robert Bradshaw
On Wed, May 25, 2011 at 1:41 PM, John Ehresman wrote: > On 5/25/11 3:51 PM, Robert Bradshaw wrote: >> >> I'm glad you're thinking about this question, some explanation of the >> various string types is at >> http://wiki.cython.org/enhancements/stringliterals >> >> Probably the way to do this is ha

Re: [Cython] [cython] Initial startswith / endswith optimization (#35)

2011-05-25 Thread John Ehresman
On 5/25/11 3:51 PM, Robert Bradshaw wrote: I'm glad you're thinking about this question, some explanation of the various string types is at http://wiki.cython.org/enhancements/stringliterals Probably the way to do this is have one optimization for bytes, one for unicode, and then have a third ty

Re: [Cython] [cython] Initial startswith / endswith optimization (#35)

2011-05-25 Thread Robert Bradshaw
On Wed, May 25, 2011 at 12:37 PM, jpe wrote: > This optimizes startswith / endwith optimization for str. Cool. >What's unclear to me is how str will be mapped to either bytes or unicode; I >assume at some point cython will have a python3 syntax mode where str is >unicode, print is a function,

[Cython] Small issue with buffers

2011-05-25 Thread Vitja Makarov
Hi! Trying to fix some tests broken by CF I've found this issue: def fuu(object[int] b1): cdef object[int] b2 print b1 buff.c: In function ‘__pyx_pf_4buff_fuu’: buff.c:504: error: ‘__pyx_bstruct_b2’ undeclared (first use in this function) buff.c:504: error: (Each undeclared identifier is