Nice. A class with a single method can be nicely modelled as a closure.
Returning higher order functions and using format’s kwargs is an even more succinct version of this.
def explode(**k)
def run():
return TheBomb(
’{user} is!’.format(**k))
return run
run(user=‘gorgoiler’)