Lisandro Dalcin wrote: > On Sat, Oct 17, 2009 at 6:22 AM, Stefan Behnel wrote: >> cdef char* s = 'x' >> print s == 'x' > > Nice corner case... > >> What is this code even supposed to mean? > > I have no (clear) idea... I mean, it is really ambiguous, right? > >> It currently prints 'True', but that's only obvious when you know some >> magic internals about Cython's string handling. > > Indeed. > > BTW... So this would be 'True' even in Python 3, right?
No, it's False there, because it's evaluated in Python space. I already forbid comparisons between bytes/unicode and str, so this must be disallowed, too. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
