Skip to content

Instantly share code, notes, and snippets.

def switch(item):
two = Default()
one = Case(item, two)
return (one, two)
class Case(object):
def __init__(self, item, default):
self.default = default
self.skip = False