This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hongweipeng
Recipients ezio.melotti, hongweipeng, magu, vstinner, xtreak
Date 2018-09-29.09:36:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538213819.27.0.545547206417.issue32291@psf.upfronthosting.co.za>
In-reply-to
Content
This problem seems to be support for str.

import multiprocessing
import ctypes

def child_process_fun(share):
    share.value = 'bb'

if __name__ == '__main__':
    share = multiprocessing.Value(ctypes.c_wchar_p, 'aa')
    process = multiprocessing.Process(target=child_process_fun, args=(share, ))
    process.start()
    process.join()
    print(share.value)

It also raises ValueError.When use c_double or c_int, it works well.

Test in python3.7 and 3.8
History
Date User Action Args
2018-09-29 09:36:59hongweipengsetrecipients: + hongweipeng, vstinner, ezio.melotti, magu, xtreak
2018-09-29 09:36:59hongweipengsetmessageid: <1538213819.27.0.545547206417.issue32291@psf.upfronthosting.co.za>
2018-09-29 09:36:59hongweipenglinkissue32291 messages
2018-09-29 09:36:59hongweipengcreate