defaultdict(None)

Question or problem about Python programming: I wish to have a dictionary which contains a set of state transitions. I presumed that I could do this using states = defaultdict(None), but its not working as I expected. For example:

Continue Reading