Hello: # I have the following dictionary: next_phases = {"open":"review","review":"write","write":"open"}
# a 'phase is extracted by next_phase = next_phases[self.phase Note that the value for each of the first keys is the key for the next item, and that the value for the last key is the *first* key. Is there a different way to do this? Works fine for me this way, but I'm just curious about an alternative, :-) expecially if it is better. thanks tim -- Tim Johnson <[EMAIL PROTECTED]> http://www.alaska-internet-solutions.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor