Skip to content

Json.dump() bug when using generator #78031

Description

@biloup
mannequin
BPO33850
Nosy@doerwalter, @ericvsmith, @serhiy-storchaka
Superseder
  • bpo-27613: Empty iterator with fake len is rendered as a single bracket ] when using json's iterencode
  • Files
  • json-dump-generators-bug.diff
  • 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=Noneclosed_at=<Date2018-06-13.13:12:52.881>created_at=<Date2018-06-13.08:44:21.503>labels= ['type-bug', 'library']
    title='Json.dump() bug when using generator'updated_at=<Date2018-06-13.13:12:52.879>user='https://bugs.python.org/biloup'

    bugs.python.org fields:

    activity=<Date2018-06-13.13:12:52.879>actor='serhiy.storchaka'assignee='none'closed=Trueclosed_date=<Date2018-06-13.13:12:52.881>closer='serhiy.storchaka'components= ['Library (Lib)']
    creation=<Date2018-06-13.08:44:21.503>creator='biloup'dependencies= []
    files= ['47640']
    hgrepos= []
    issue_num=33850keywords= ['patch']
    message_count=4.0messages= ['319436', '319442', '319459', '319461']
    nosy_count=4.0nosy_names= ['doerwalter', 'eric.smith', 'serhiy.storchaka', 'biloup']
    pr_nums= []
    priority='normal'resolution='duplicate'stage='resolved'status='closed'superseder='27613'type='behavior'url='https://bugs.python.org/issue33850'versions= ['Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard 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