Skip to content

Instantly share code, notes, and snippets.

@bee-san
Last active July 23, 2018 18:39
Show Gist options
  • Select an option

  • Save bee-san/352c9fb1fa7996a64f20a6396f5a6cfa to your computer and use it in GitHub Desktop.

Select an option

Save bee-san/352c9fb1fa7996a64f20a6396f5a6cfa to your computer and use it in GitHub Desktop.
# taken from page 87, chapter 3 of Fluent Python by Luciano Ramalho
>>> from unicodedata import name
>>> {chr(i) for i in range(32, 256) if 'SIGN' in name(chr(i), '')}
{'×', '¥', '°', '£', '©', '#', '¬', '%', 'µ', '>', '¤', '±', '¶', '§', '<', '=', '®', '$', '÷', '¢', '+'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment