News for hackers. Stuff that matters.
Re:Whence '\N'? by deathanatos on Sunday October 06, 2024 @01:59PM (#41758822)
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.

There are no comments on this comment yet.