Session09

Absolutely right and I could save memory by using no bindings at all or  if I wanted to use bindings, I should have at least done it this way (so that the code can easily be reused):

def p_wrapper(func):
    """Wraps original output in an HTML 'p' tag
    """
    def wrapped(text):
        tag = u"p"
        result = u"<{}> {} </{}>".format(tag, func(text), tag)
        return result
    return wrapped