[issue32003] multiprocessing.Array("b", 1), multiprocessing.Array("c", 1 ) wrong value returned

Steven D'Aprano report at bugs.python.org
Fri Nov 10 18:43:54 EST 2017


Steven D'Aprano <steve+python at pearwood.info> added the comment:

I don't understand why you think they are the wrong values. What values were you expecting?

You have a byte array, you set the value to the  byte b's', which is 115, and you get 115. You have a (byte) character array, you set the value to the byte b's', and you get b's'. What were you expecting?

----------
components: +asyncio -Library (Lib)
nosy: +steven.daprano -eryksun
type: behavior -> 

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32003>
_______________________________________


More information about the Python-bugs-list mailing list