Hacker News new | ask | show | jobs
by vilya 5351 days ago
In python there's no such thing as a char, there's only single-character strings. The above would actually be doing 6 string comparisons. That may still be faster... or may not. Measuring is the only way to be sure.