Re: how to share/access variables from multiprocessing target function

2017-05-03 Thread Iranna Mathapati
Can you please elaborate in my case(means above code)i tried with manager still hitting issue. Thanks, On Wed, May 3, 2017 at 8:14 PM, eryk sun wrote: > On Wed, May 3, 2017 at 2:04 PM, Iranna Mathapati > wrote: > > how to share/access the " global returndict_st_FP,returndict_st_RP" > tar

Re: how to share/access variables from multiprocessing target function

2017-05-03 Thread eryk sun
On Wed, May 3, 2017 at 2:04 PM, Iranna Mathapati wrote: > how to share/access the " global returndict_st_FP,returndict_st_RP" target > function variables acors the main program.. You can share a dict using a Manager. https://docs.python.org/3/library/multiprocessing.html#managers -- https://ma

how to share/access variables from multiprocessing target function

2017-05-03 Thread Iranna Mathapati
*Hi team,* *How to access the multiprocessing target function variables across the main program. * *def sending_static_traffic(FT_item_st,RT_item_st,pkt_st)*: log.info('Starting Static NAT forward Traffic Test...') global returndict_st_FP,returndict_st_RP <