I'm a little confused about how Python 3 handles multibyte Unicode characters. Here is an example with emoji:
In [1]: print('☺️')
☺️
In [2]: print(len('☺️'))
2
In [3]: print('☺️'[0])
☺
In [4]: print('☺️'[1])
️
In [5]: print(len('👩🏾💼'))
4
Since I am working on a small emojis hobby project, this causes certain problems for me, since I would rather deal with emojis as single-character strings, rather than treating them as multi-character strings, as Python 3 does. Why doesn't Python 3 recognize this as a single character, and how do I work and work with emojis in a way that I would prefer?
If this is more likely a problem with my terminal or REPL, I use the macOS Sierra terminal with iPython 5.1.0.