logoalt Hacker News

vova_hn2today at 3:51 PM1 replyview on HN

> Behold! Plato’s man. [0]

    def replace_em_dash(text: str) -> str:
        """
            +-------------------+
            |   ( ͡° ͜ʖ ͡° )     |
            +-------------------+
        """
        return text.replace("—", "\u10EAD\u10EAC")

[0] usually attributed to Diogenes

Replies

pwdisswordfishytoday at 4:33 PM

    >>> "—".replace("—", "\u10EAD\u10EAC")
    'ცDცC'
Behold indeed.
show 1 reply