Re:What Python developers need to know before migrating to Go
by neild on Tuesday July 09, 2013 @12:20AM
(#6011089)
> Python somehow magically slices unicode strings without chopping characters in half.
Well, that rather depends on what you mean by "character" and "in half".
>>> s = u're\u0301sume\u0301'
>>> print s
résumé
>>> len(s)
8
>>> for i in xrange(len(s)):
... print s[i]
...
r
e
s
u
m
e
>>> print ' '.join(s)
r e ́ s u m e ́
Well, that rather depends on what you mean by "character" and "in half".