On Wednesday, April 27, 2016 at 8:29:02 PM UTC-4, Cedric St-Jean wrote: > > Maybe this will work? > > client.on_connect = PyCall.jlfun2pyfun(on_connect) > client.on_message = PyCall.jlfun2pyfun(on_message) > > jlfun2pyfun simply inserts an extra level of indirection through a native > Python lambda, which does have a func_code. >
It does, but the lambda has a func_code.co_argcount of 0 (because it is a varargs function that just passes through all its arguments to the underlying Julia function), which is probably not what the library wants here.
