Message326673
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 |
|
| Date |
User |
Action |
Args |
| 2018-09-29 09:36:59 | hongweipeng | set | recipients:
+ hongweipeng, vstinner, ezio.melotti, magu, xtreak |
| 2018-09-29 09:36:59 | hongweipeng | set | messageid: <1538213819.27.0.545547206417.issue32291@psf.upfronthosting.co.za> |
| 2018-09-29 09:36:59 | hongweipeng | link | issue32291 messages |
| 2018-09-29 09:36:59 | hongweipeng | create | |
|