[issue44170] ShareableList cannot safely handle multibyte utf-8 characters
Huw Jones
report at bugs.python.org
Tue May 18 07:18:26 EDT 2021
Huw Jones <huw at huwcbjones.co.uk> added the comment:
The workaround I am using is to manually encode/decode.
For the MWE, this means encoding on the creation side
```
shared_list = smm.ShareableList([s.encode() for s in strings])
```
and decoding before using the string
```
for enc_str in shared_list:
string = enc_str.decode()
```
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44170>
_______________________________________
More information about the Python-bugs-list
mailing list