Skip to content

Instantly share code, notes, and snippets.

@kenaniah
Last active December 23, 2015 13:39
Show Gist options
  • Save kenaniah/6643820 to your computer and use it in GitHub Desktop.
Save kenaniah/6643820 to your computer and use it in GitHub Desktop.
class Worker(object):
@staticmethod
def _irr(....):
...
def foo():
with multiprocessing.Pool() as pool:
results = {}
results['gross_xirr'] = pool.apply_async(Worker._irr, (gross_stream, 0.115, 'xnpv'))
# The above line yields:
#_pickle.PicklingError: Can't pickle <class 'function'>: attribute lookup builtins.function failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment