This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Python's set data structure is the only one without a literal | |
notation for an empty set. | |
http://excess.org/article/2012/11/python-container-literals/ | |
This is an ast transformer to add an empty set notation with the | |
following form: | |
empty_set = {_} |