From: Kent Dahl Date: 2002-09-24T04:19:03+09:00 Subject: Re: Speed up suggestions Kent Dahl wrote: > I am confused. Ruby '\n' is not equivalent with Ruby "\n", so a > difference would not be unexpected. (The size of the difference perhaps) > In Python, "\n" and '\n' are the same and equivalent to Ruby "\n". > > It appears to me that the original comparision is null and void, since > it does not do the same thing. Has anybody looked closer at the output > of the Python vs the Ruby versions, like running a diff? It sure looks > different to me... Sorry, I had a brainfart on the latter. The output is the same. But that is even more confusing. I was expecting: "yabba\dabba\\none".split("\\n") == ["yabba\dabba", "one"] Is there some extra conversion being done to the delimiter inside split? -- (\[ Kent Dahl ]/)_ _~_ __[ http://www.stud.ntnu.no/~kentda/ ]___/~ ))\_student_/(( \__d L b__/ NTNU - graduate engineering - 5. year ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)