Interesting! Not 100% sure though, how to conclude from that post.
One voice there says "the two are not comparable one should use BytesIO, when
input data is bytes, and StringIO when Input data is string".
However in the this case, both seem suitable. So, the performance comparison
suggests that StringIO would be better for Pyhon 2, while BytesIO will be
better for Python 3 (where cStringIO will be no longer available).
So, I tend to use BytesIO with regards to future compatibility...
From: Nikos Alexandris [mailto:n...@nikosalexandris.net]
Sent: mandag 12. februar 2018 21.20
To: Stefan Blumentrath <stefan.blumentr...@nina.no>
Cc: grass-user grass-user (email@example.com)
Subject: Re: [GRASS-user] raster map from coordinates in python
* Stefan Blumentrath <stefan.blumentr...@nina.no> [2018-02-12 19:41:15 +0000]:
>StringIO can be replaced with BytesIO BTW, though I don`t know what difference
>the two make...
Out of curiosity I did a search. https://stackoverflow.com/a/37463095
grass-user mailing list