Re: [Cython] raw string problem
On Wed, Jan 12, 2011 at 10:29 AM, Vitja Makarov vitja.maka...@gmail.com wrote: Hi! It seems that cython parses raw strings as usual strings: Try this: print r'\' This is certainly a bug. http://trac.cython.org/cython_trac/ticket/641 - Robert ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
2011/1/12 Robert Bradshaw rober...@math.washington.edu: On Wed, Jan 12, 2011 at 10:29 AM, Vitja Makarov vitja.maka...@gmail.com wrote: Hi! It seems that cython parses raw strings as usual strings: Try this: print r'\' This is certainly a bug. http://trac.cython.org/cython_trac/ticket/641 This should be easy to fix... Why do you think that this could be a major change? Does some code use this bug? -- vitja. ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
On Wed, Jan 12, 2011 at 11:03 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/1/12 Robert Bradshaw rober...@math.washington.edu: On Wed, Jan 12, 2011 at 10:29 AM, Vitja Makarov vitja.maka...@gmail.com wrote: Hi! It seems that cython parses raw strings as usual strings: Try this: print r'\' This is certainly a bug. http://trac.cython.org/cython_trac/ticket/641 This should be easy to fix... Why do you think that this could be a major change? Does some code use this bug? It is very possible that there is code out there using this bug, and if so it would be a silent, backwards incompatible change. - Robert ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
Vitja Makarov, 12.01.2011 19:29: It seems that cython parses raw strings as usual strings: Try this: print r'\' That's slightly exaggerated. The only broken cases are '\' and '\'', everything else works AFAICT. Stefan ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
2011/1/12 Stefan Behnel stefan...@behnel.de: Vitja Makarov, 12.01.2011 19:29: It seems that cython parses raw strings as usual strings: Try this: print r'\' That's slightly exaggerated. The only broken cases are '\' and '\'', everything else works AFAICT. Stefan That breaks StringEncoding._to_escape_sequence btw... -- vitja. ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
Vitja Makarov, 12.01.2011 22:08: 2011/1/12 Stefan Behnel: Vitja Makarov, 12.01.2011 19:29: It seems that cython parses raw strings as usual strings: Try this: print r'\' That's slightly exaggerated. The only broken cases are '\' and '\'', everything else works AFAICT. That breaks StringEncoding._to_escape_sequence btw... What do you mean? When I fix the parser, it works for me. Stefan ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
On Wed, Jan 12, 2011 at 12:51 PM, Stefan Behnel stefan...@behnel.de wrote: Vitja Makarov, 12.01.2011 19:29: It seems that cython parses raw strings as usual strings: Try this: print r'\' That's slightly exaggerated. The only broken cases are '\' and '\'', everything else works AFAICT. That is comforting, and given that it's a tiny corner case I think it's worth and safe fixing in 0.14.1. - Robert ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
Robert Bradshaw, 12.01.2011 22:16: On Wed, Jan 12, 2011 at 12:51 PM, Stefan Behnel wrote: Vitja Makarov, 12.01.2011 19:29: It seems that cython parses raw strings as usual strings: Try this: print r'\' That's slightly exaggerated. The only broken cases are '\' and '\'', everything else works AFAICT. That is comforting, and given that it's a tiny corner case I think it's worth and safe fixing in 0.14.1. I pushed a fix. Stefan ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev
Re: [Cython] raw string problem
2011/1/13 Stefan Behnel stefan...@behnel.de: Robert Bradshaw, 12.01.2011 22:16: On Wed, Jan 12, 2011 at 12:51 PM, Stefan Behnel wrote: Vitja Makarov, 12.01.2011 19:29: It seems that cython parses raw strings as usual strings: Try this: print r'\' That's slightly exaggerated. The only broken cases are '\' and '\'', everything else works AFAICT. That is comforting, and given that it's a tiny corner case I think it's worth and safe fixing in 0.14.1. I pushed a fix. Thanks! -- vitja. ___ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev