'array.array' object has no attribute 'tostring' which 3 got it fixed?

Chris Angelico rosuav at gmail.com
Tue Dec 21 06:30:58 EST 2021


On Tue, Dec 21, 2021 at 9:56 PM '2+ <electriclightheads at gmail.com> wrote:
>
> hi ;)
>
> got popos installed on my raspberry pi4 and it is currently running python
> 3.9.7
>
> i get this error when running my script:
>
> 'array.array' object has no attribute 'tostring'
>
> this bug seems to be pretty old .. how long should i be waiting to get it
> fixed with apt upgrade?
>
> or should i use other attribute instead?

I'd recommend reading the documentation :)

https://docs.python.org/3/library/array.html#array.array.tobytes

ChrisA


More information about the Python-list mailing list