Author Snidhi
Recipients John_81, Justin Patrin, Richard.Fothergill, Snidhi, Waldemar.Parzonka, carlosdf, dan.oreilly, dariosg, davin, jnoller, kghose, python-dev, sbt, terrence, yselivanov
Date 2018-02-06.15:03:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517929388.01.0.467229070634.issue6766@psf.upfronthosting.co.za>
In-reply-to
Content
Hi team,

Looks like this issue remains per code below:

import multiprocessing, sys, time, traceback;

if __name__ == '__main__':

    print(sys.version);

    mpd = multiprocessing.Manager().dict();
    mpd['prcss'] = {'q' : 'queue_1', 'ctlg' : 'ctlg_1' };

    # update 1 - doesn't work!
    mpd['prcss'].update( { 'name': 'concfun_1'} );
    print('Result of failed update 1:', mpd['prcss']);

    # update 2 - doesn't work!
    mpd['prcss']['name'] = 'concfun_1';
    print('Result of failed update 2:', mpd['prcss']);

    # update 3 - works!
    mpd_prcss = mpd['prcss'];
    mpd_prcss['name'] = 'concfun_1';
    mpd['prcss'] = mpd_prcss;
    print('Result of successful update 3:', mpd['prcss']);

### --- output ###
3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]
Result of failed update 1: {'q': 'queue_1', 'ctlg': 'ctlg_1'}
Result of failed update 2: {'q': 'queue_1', 'ctlg': 'ctlg_1'}
Result of successful update 3: {'q': 'queue_1', 'ctlg': 'ctlg_1', 'name': 'concfun_1'}
History
Date User Action Args
2018-02-06 15:03:08Snidhisetrecipients: + Snidhi, jnoller, carlosdf, terrence, kghose, python-dev, sbt, dariosg, yselivanov, Richard.Fothergill, dan.oreilly, Waldemar.Parzonka, davin, Justin Patrin, John_81
2018-02-06 15:03:08Snidhisetmessageid: <1517929388.01.0.467229070634.issue6766@psf.upfronthosting.co.za>
2018-02-06 15:03:07Snidhilinkissue6766 messages
2018-02-06 15:03:07Snidhicreate