Skip to content

CSV writer example #3

Open
Open

Description

@dhellmann

Example 7.7.2 shows output file open with mode 'wt'. In fact on windows this causes records to be separated with /r/r/d causing confusion for downstream software, like notepad. Per the documentation (sec 13.1) "If csvfile is a file object, it must be opened with the ‘b’ flag on platforms where that makes a difference."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions