Skip to content

json module won't parse a float that starts with a decimal point #64070

Closed as not planned
@picomancer

Description

@picomancer
mannequin
BPO 19871
Nosy @tim-one, @terryjreedy, @jcea, @mdickinson, @pitrou, @nedbat, @ezio-melotti, @serhiy-storchaka, @vajrasky
Files
  • fix_doc_parse_non_valid_json_float.patch
  • parse_non_valid_json_float_with_unit_test.patch: Doc fix and unit test
  • parse_non_valid_json_float_with_unit_test_v2.patch: Doc fix and unit test, updated after Ezio's review.
  • 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 = None
    created_at = <Date 2013-12-03.08:21:12.979>
    labels = ['easy', 'type-bug', 'tests', 'docs']
    title = "json module won't parse a float that starts with a decimal point"
    updated_at = <Date 2017-03-07.15:51:01.908>
    user = 'https://bugs.python.org/picomancer'

    bugs.python.org fields:

    activity = <Date 2017-03-07.15:51:01.908>
    actor = 'serhiy.storchaka'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation', 'Tests']
    creation = <Date 2013-12-03.08:21:12.979>
    creator = 'picomancer'
    dependencies = []
    files = ['33159', '33160', '33558']
    hgrepos = []
    issue_num = 19871
    keywords = ['patch', 'easy']
    message_count = 17.0
    messages = ['205080', '205083', '205091', '205114', '205119', '205242', '205246', '205247', '206280', '206292', '208519', '210807', '210812', '210817', '210819', '210825', '215087']
    nosy_count = 13.0
    nosy_names = ['tim.peters', 'holdenweb', 'terry.reedy', 'jcea', 'mark.dickinson', 'pitrou', 'nedbat', 'ezio.melotti', 'cvrebert', 'docs@python', 'serhiy.storchaka', 'vajrasky', 'picomancer']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'pending'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue19871'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      docsDocumentation in the Doc direasytestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      Done

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions