Skip to content

Instantly share code, notes, and snippets.

@Mazuh
Last active April 9, 2018 15:57
Show Gist options
  • Save Mazuh/08a32b4b088c40fe1d5f43114f28ad34 to your computer and use it in GitHub Desktop.
Save Mazuh/08a32b4b088c40fe1d5f43114f28ad34 to your computer and use it in GitHub Desktop.
Python keywords sorted descendingly by their length, as JSON-like
import keyword
', '.join(['"%s"' % kw for kw in sorted(keyword.kwlist, key=len, reverse=True)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment