We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to propose being able to open a StringIO s with CSV.foreach(s), just as it's possible to open a file with CSV.foreach(path).
StringIO
s
CSV.foreach(s)
CSV.foreach(path)
I can investigate and open a PR if this behavior is desired.
The documentation already says it should be possible to pass an IO object to foreach, but if an instance of StringIO is passed, we get:
foreach
no implicit conversion of StringIO into String (TypeError)
The text was updated successfully, but these errors were encountered:
If CSV.foeach(io) works, CSV.foreach(string_io) should work too.
CSV.foeach(io)
CSV.foreach(string_io)
Sorry, something went wrong.
Great, I'll open a PR with proposed changes in the next days.
ce91198
Successfully merging a pull request may close this issue.
Proposal
I'd like to propose being able to open a
StringIO
s
withCSV.foreach(s)
, just as it's possible to open a file withCSV.foreach(path)
.I can investigate and open a PR if this behavior is desired.
Current behavior
The documentation already says it should be possible to pass an IO object to
foreach
, but if an instance ofStringIO
is passed, we get:The text was updated successfully, but these errors were encountered: