New version of 'hash' in python give different values during execution of each thread when doing multiprocessing. Following error will accure:
50000_firms/start.py return error when running in 2 or more processess:
KeyError: ('myagent', 11980)
There is problem with three functions which use 'hash':
multiprocessing.py -- def insert_or_append
multiprocessing.py -- def do
agent.py -- def _send_multiprocessing
Would the variable address of the string become unambiguous across processes with id(agent_name)? Perhaps a different hashing scheme is used when multiprocessing is on.
New version of 'hash' in python give different values during execution of each thread when doing multiprocessing. Following error will accure:
50000_firms/start.py return error when running in 2 or more processess:
KeyError: ('myagent', 11980)
There is problem with three functions which use 'hash': multiprocessing.py --
def insert_or_append
multiprocessing.py --def do
agent.py --def _send_multiprocessing
my proposal - replace default hash function with: