Top "Stringio" questions

Use for questions concerning the Python 2 module StringIO or the class StringIO it contains.

Convert io.BytesIO to io.StringIO to parse HTML page

I'm trying to parse a HTML page I retrieved through pyCurl but the pyCurl WRITEFUNCTION is returning the page as …

html beautifulsoup pycurl stringio type-conversion
Python pandas NameError: StringIO is not defined

I am unable to read data in Pandas: Input: import pandas as pd data = 'a,b,c\n1,2,3\n4,5,6' …

python python-3.x pandas csv stringio
no module named StringIO

I have python 3.6. I want to execute python file named 'operation.py' from another python file named 'run.py'. In …

python python-3.x stringio cstringio
What are the advantages to using StringIO in Ruby as opposed to String?

When is it considered proper to use Ruby's StringIO as opposed to just using String? I think I understand the …

ruby string stringio
Python, write in memory zip to file

How do I write an in memory zipfile to a file? # Create in memory zip and add files zf = zipfile.…

python zip stringio
How to read image from in memory buffer (StringIO) or from url with opencv python library

Just share a way to create opencv image object from in memory buffer or from url to improve performance. Sometimes …

image opencv numpy urllib2 stringio
Python: How to get StringIO.writelines to accept unicode string?

I'm getting a UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 34: ordinal not in range(128) on a …

python string unicode ascii stringio
Python Flask send_file StringIO blank files

I'm using python 3.5 and flask 0.10.1 and liking it, but having a bit of trouble with send_file. I ultimately want …

python flask stringio
Fail to get data on using read() of StringIO in python

Using Python2.7 version. Below is my sample code. import StringIO import sys buff = StringIO.StringIO() buff.write("hello") print buff.…

python stringio
How can I resolve TypeError with StringIO in Python 2.7?

Trying to read following string as file using StringIO but getting the error below. How can I resolve it? >&…

python python-2.7 stringio