Skip to content

wrong error messages when using PyArg_ParseTuple to parse normal tuples #72448

@orenmn

Description

@orenmn
mannequin
BPO 28261
Nosy @rhettinger, @vstinner, @serhiy-storchaka, @orenmn
PRs
  • bpo-28261: fix err msgs where PyArg_ParseTuple is used to parse normal tuples #3119
  • bpo-28261: fix err msgs where PyArg_ParseTuple is used to parse normal tuples (leftovers) #3198
  • [3.6] bpo-28261: Prevent raising SystemError where PyArg_ParseTuple is used to parse non-args #3210
  • [2.7] bpo-28261: Prevent raising SystemError where PyArg_ParseTuple is used to parse non-args #3213
  • Files
  • testBugsOrPatches.py: an ugly script that verifies the bugs or the patches
  • issue28261_ver1.diff: proposed patches diff file - ver1
  • patchedCPythonTestOutput_ver1.txt: test output of CPython with my patches (tested on my PC) - ver1
  • CPythonTestOutput.txt: test output of CPython without my patches (tested on my PC)
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2017-08-26.19:01:58.457>
    created_at = <Date 2016-09-23.20:16:55.347>
    labels = ['type-bug', '3.7', 'expert-IO']
    title = 'wrong error messages when using PyArg_ParseTuple to parse normal tuples'
    updated_at = <Date 2017-08-26.19:01:58.455>
    user = 'https://github.com/orenmn'

    bugs.python.org fields:

    activity = <Date 2017-08-26.19:01:58.455>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2017-08-26.19:01:58.457>
    closer = 'serhiy.storchaka'
    components = ['IO']
    creation = <Date 2016-09-23.20:16:55.347>
    creator = 'Oren Milman'
    dependencies = []
    files = ['44795', '44796', '44797', '44798']
    hgrepos = []
    issue_num = 28261
    keywords = ['patch']
    message_count = 22.0
    messages = ['277296', '288792', '288861', '288862', '288869', '288911', '288917', '289672', '289673', '289727', '300366', '300402', '300417', '300418', '300604', '300614', '300792', '300841', '300843', '300875', '300893', '300896']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'vstinner', 'serhiy.storchaka', 'Oren Milman']
    pr_nums = ['3119', '3198', '3210', '3213']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28261'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions