News for hackers. Stuff that matters.
Re:What Python developers need to know before migrating to Go by n1ghtm4n on Tuesday July 09, 2013 @01:48AM (#6011299)
Thank you for the explanation! Converting to a rune slice and back does give me the behavior that I wanted. It still looks butt ugly to me, but at least it works.

In Go:

    fmt.Printf("%s", string([]rune("нєℓℓσ")[1:4]))
    // єℓℓ
In Python:

    print("нєℓℓσ"[1:4])
    # єℓℓ

There are no comments on this comment yet.