Thanks, Nikos!
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...


-----Original Message-----
From: Nikos Alexandris [] 
Sent: mandag 12. februar 2018 21.20
To: Stefan Blumentrath <>
Cc: grass-user grass-user ( 
Subject: Re: [GRASS-user] raster map from coordinates in python

* Stefan Blumentrath <> [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.


grass-user mailing list

Reply via email to