For the first time in my python life, I need a curried function. I can do this. First, put code in frying pan with a crap load of spice, pour over coconut milk and simmer until thickened.
Ok, I think this will work:
def call_back():
def rice_curry():
# will name be available in the closure here?
code = self.simple_name_to_code[name]
return self.execute_arbitrary(name, code)
return rice_curry♡ 0 ↻ 0