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 steven.daprano
Recipients steven.daprano
Date 2017-11-10.23:53:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510357988.91.0.213398074469.issue32005@psf.upfronthosting.co.za>
In-reply-to
Content
multiprocessing.Array slice assignment claims to require a single character even if it requires more than one:

py> arr = multiprocessing.Array('c', 3)
py> arr[:] = b'xyz'  # works
py> arr[:] = 'xyz'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/multiprocessing/sharedctypes.py", line 226, in __setitem__
    self._obj[i] = value
TypeError: one character bytes, bytearray or integer expected
History
Date User Action Args
2017-11-10 23:53:08steven.dapranosetrecipients: + steven.daprano
2017-11-10 23:53:08steven.dapranosetmessageid: <1510357988.91.0.213398074469.issue32005@psf.upfronthosting.co.za>
2017-11-10 23:53:08steven.dapranolinkissue32005 messages
2017-11-10 23:53:08steven.dapranocreate