Skip to content

csv.writer converts None to '""\n' when it is first line, otherwise '\n' #76436

@Licht-T

Description

@Licht-T
mannequin
BPO 32255
Nosy @bitdancer, @serhiy-storchaka, @nitishch, @Licht-T
PRs
  • bpo-32255: Fix inconsistent behavior when csv.writer writes None #4769
  • [3.6] bpo-32255: Always quote a single empty field when write into a CSV file. (GH-4769) #4810
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-12-12.10:56:58.260>
    created_at = <Date 2017-12-08.14:43:54.282>
    labels = ['3.7', 'type-bug', 'library']
    title = 'csv.writer converts None to \'""\\n\' when it is first line, otherwise \'\\n\''
    updated_at = <Date 2017-12-12.10:56:58.259>
    user = 'https://github.com/Licht-T'

    bugs.python.org fields:

    activity = <Date 2017-12-12.10:56:58.259>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-12.10:56:58.260>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2017-12-08.14:43:54.282>
    creator = 'licht-t'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32255
    keywords = ['patch']
    message_count = 12.0
    messages = ['307851', '307939', '307940', '307941', '307984', '307986', '307997', '308009', '308050', '308102', '308103', '308109']
    nosy_count = 4.0
    nosy_names = ['r.david.murray', 'serhiy.storchaka', 'nitishch', 'licht-t']
    pr_nums = ['4769', '4810']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32255'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions