You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.
General Python note: the best practice for this would be to say
with open(filename, 'w') as f:
f.writelines(lines)
Note that even if you were writing the lines individually instead of using writelines there's no reason to use os.linesep because Python will automatically convert \n to the appropriate line ending if you open in w mode. If you wanted to NOT do that, you would open in wb mode.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For the CSV output function
General Python note: the best practice for this would be to say
Note that even if you were writing the lines individually instead of using writelines there's no reason to use os.linesep because Python will automatically convert \n to the appropriate line ending if you open in w mode. If you wanted to NOT do that, you would open in wb mode.
The text was updated successfully, but these errors were encountered: