Last active
December 23, 2015 13:39
-
-
Save kenaniah/6643820 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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