This file contains hidden or 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
class atom(object): | |
"""An implementation of the atom concept, inspired by Erlang. | |
Modified from here: http://www.me.net.nz/blog/atoms-slash-symbols-in-python/ | |
""" | |
def __init__(self, a): | |
self._a = intern(a) | |
def __eq__(self, other): |
NewerOlder