Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
deathanatos
on Oct 6, 2024
|
parent
|
context
|
favorite
| on:
Whence '\n'?
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:
Much more self-documenting than doing it with a hex sequence with \u or \U.