Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python has a \N escape sequence. It inserts a Unicode character by name. For example,

  '\N{PILE OF POO}'
is the Unicode string containing a single USV, the pile of poop emoji.

Much more self-documenting than doing it with a hex sequence with \u or \U.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: