Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. class BF(object)
  2. def __init__():
  3. .
  4. .
  5. def add(self,z):
  6. .
  7. .
  8.  
  9. from y import BF
  10. def FUNC((a,b,bf))
  11. .
  12. .
  13. bf.add(x)
  14. .
  15. .
  16. return bf
  17.  
  18. .
  19. .
  20. if __name__ == '__main__':
  21. pool = multiprocessing.Pool(3)
  22. for i in range(len(sl)):
  23. bf_set.append(BF())
  24. results = pool.map(FUNC,zip(sl, itertools.repeat(aa), bf_set))
  25.  
  26. PicklingError: Can't pickle <type 'instancemethod'>: attribute lookup __builtin__.instancemethod failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement