Skip to content

Json.dump() bug when using generator #78031

@biloup

Description

@biloup
mannequin
BPO 33850
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 = None
    closed_at = <Date 2018-06-13.13:12:52.881>
    created_at = <Date 2018-06-13.08:44:21.503>
    labels = ['type-bug', 'library']
    title = 'Json.dump() bug when using generator'
    updated_at = <Date 2018-06-13.13:12:52.879>
    user = 'https://bugs.python.org/biloup'

    bugs.python.org fields:

    activity = <Date 2018-06-13.13:12:52.879>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-06-13.13:12:52.881>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2018-06-13.08:44:21.503>
    creator = 'biloup'
    dependencies = []
    files = ['47640']
    hgrepos = []
    issue_num = 33850
    keywords = ['patch']
    message_count = 4.0
    messages = ['319436', '319442', '319459', '319461']
    nosy_count = 4.0
    nosy_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
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions