Skip to content

Fix exception pickling: Move initial args assignment to BaseException.__new__ #44791

@zseil

Description

@zseil
mannequin
BPO 1692335
Nosy @gvanrossum, @loewis, @brettcannon, @birkenfeld, @facundobatista, @jaraco, @abalkin, @pitrou, @vstinner, @taleinat, @avassalotti, @benjaminp, @orivej, @ambv, @slallum
Files
  • exc_args.diff: patch against trunk revision 54643
  • exc_args_25.diff: patch against release25-maint branch revision 54643
  • test_exception_pickle.py: failing test
  • exception-pickling.diff: patch by Georg
  • exception-pickling.diff: patch by Georg
  • exception_pickling_25.diff: getstate() patch for the 2.5 branch
  • exception_pickling_26.diff: getstate() patch for the 2.6 branch
  • exception_pickling_26.diff: fixed rejects and fuzz on the current svn version
  • issue1692335-tests.patch: Patch demonstrating the bug
  • init_args.patch
  • init_args.patch
  • 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 2012-07-29.12:24:55.210>
    created_at = <Date 2007-04-01.13:46:15.000>
    labels = ['interpreter-core', 'type-bug']
    title = 'Fix exception pickling: Move initial args assignment to BaseException.__new__'
    updated_at = <Date 2018-10-11.14:43:02.459>
    user = 'https://bugs.python.org/zseil'

    bugs.python.org fields:

    activity = <Date 2018-10-11.14:43:02.459>
    actor = 'orivej'
    assignee = 'sbt'
    closed = True
    closed_date = <Date 2012-07-29.12:24:55.210>
    closer = 'sbt'
    components = ['Interpreter Core']
    creation = <Date 2007-04-01.13:46:15.000>
    creator = 'zseil'
    dependencies = []
    files = ['7915', '7916', '7917', '7918', '7919', '7920', '7921', '9198', '17509', '26537', '26550']
    hgrepos = []
    issue_num = 1692335
    keywords = ['patch']
    message_count = 64.0
    messages = ['52348', '52349', '52350', '52351', '52352', '52353', '52355', '52356', '52357', '52359', '52360', '52361', '52362', '52363', '55165', '55958', '56054', '60067', '60163', '61967', '61997', '61999', '62025', '70453', '75955', '76020', '76026', '76028', '102995', '106811', '108954', '108960', '117139', '117145', '117149', '133581', '151039', '151068', '166332', '166477', '166523', '166526', '166527', '166552', '166555', '166557', '166558', '166572', '166581', '166590', '166592', '166598', '166601', '166605', '166640', '166665', '166717', '166750', '166791', '183153', '310939', '310951', '310955', '310958']
    nosy_count = 27.0
    nosy_names = ['gvanrossum', 'loewis', 'nnorwitz', 'brett.cannon', 'georg.brandl', 'facundobatista', 'jafo', 'ehuss', 'tseaver', 'jaraco', 'belopolsky', 'zseil', 'fmitha', 'pitrou', 'vstinner', 'taleinat', 'alexandre.vassalotti', 'benjamin.peterson', 'jarpa', 'bpb', 'orivej', 'zbysz', 'kylev', 'lukasz.langa', 'python-dev', 'sbt', 'slallum']
    pr_nums = []
    priority = 'critical'
    resolution = 'fixed'
    stage = 'commit review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1692335'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions