-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: StringIO from io instead of from StringIO #10470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Yes, in Python 3 they are aliases. In Python 2 the |
they are also aliased in py2 on purpose where is io.stringio different? do u have a reference |
The only thing I'm aware of other than performance is the input allowed.
|
Indeed, seems like a good idea to use @jreback The |
@kawochen so nothing against this, if it passes the current suite prob ok. Though these edge cases may not be tested, so if you can gin up something where |
@kawochen ahh good point. |
The compat version has been removed (#25954), so this can be closed. |
It looks like
io
is available from 2.6 onward. Can I move the importing out ofcompat
(and replaces anycStringIO
withStringIO
)?StringIO.StringIO
doesn't always do the same thing asio.StringIO
.The text was updated successfully, but these errors were encountered: