python - What is the difference between StringIO and io.StringIO in Python2.7? -


In addition to the obvious (one type, another class)? What should be liked? No significant difference in the use cases, perhaps?

I see it.

An in-memory stream for Unicode text refers to TextIowrapper.

This module implements a file-like range, StringIO, that reads and writes a string buffer (also known as memory files).

Io.StringIO is a class. This handles Unicode, it reflects the preferred Python 3 library structure.

StringIO.StringIO is a class. This string handles This legacy Python 2 library shows the structure.

Should be given priority?

Always proceed to the new library organization should use io.open to replace the built-in Unicode-unknown open .

Next. Go ahead.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -