Hi all, I threw something together on a whim and would like your opinion of it.
Inspired by JavaScript and it’s use of callbacks for IO-bound functions: expensiveFunction("argument", function(result) { console.log("The results are: " + result); }) I did this. def callback(result): print "The results are: %s" % result invoke(expensive_function, callback) Code here: https://gist.github.com/mottosso/c20df396f4ecc882b53c Question is, is there already a way of doing this? If not, what could be made better, faster, stronger? I’m calling it “invoke” but I’m sure there’s already an established term for it, do you know of any? Best, Marcus -- *Marcus Ottosson* konstrukt...@gmail.com -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD6jDvWtY39eBEbQVU95HB2T0wF89GHeXSAdHEnUn5yDA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.