hongweipeng <hongweichen8...@sina.com> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to