Skip to content

object.__init__ shouldn't allow args/kwds #44742

@blakeross

Description

@blakeross
mannequin
BPO 1683368
Nosy @gvanrossum, @birkenfeld, @rhettinger, @terryjreedy, @gpshead, @jcea, @jaraco, @benjaminp, @jonashaag, @ericsnowcurrently
Files
  • new_init.patch: Proposed patch to typeobject.c.
  • new_init_strict.patch: Stricter version that doesn't quite work. :-(
  • 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/gvanrossum'
    closed_at = <Date 2008-04-14.20:38:47.651>
    created_at = <Date 2007-03-19.03:32:33.000>
    labels = ['interpreter-core', 'type-bug']
    title = "object.__init__ shouldn't allow args/kwds"
    updated_at = <Date 2015-05-13.16:27:58.951>
    user = 'https://bugs.python.org/blakeross'

    bugs.python.org fields:

    activity = <Date 2015-05-13.16:27:58.951>
    actor = 'terry.reedy'
    assignee = 'gvanrossum'
    closed = True
    closed_date = <Date 2008-04-14.20:38:47.651>
    closer = 'gvanrossum'
    components = ['Interpreter Core']
    creation = <Date 2007-03-19.03:32:33.000>
    creator = 'blakeross'
    dependencies = []
    files = ['2322', '2323']
    hgrepos = []
    issue_num = 1683368
    keywords = []
    message_count = 38.0
    messages = ['31571', '31572', '31573', '31574', '31575', '31576', '31577', '31578', '31579', '31580', '31581', '31582', '31583', '31584', '31585', '31586', '31587', '31588', '31589', '65418', '98720', '102136', '102138', '156137', '156138', '156139', '179976', '179999', '180002', '219255', '219272', '219276', '219278', '219293', '219300', '219306', '219320', '219666']
    nosy_count = 13.0
    nosy_names = ['gvanrossum', 'georg.brandl', 'rhettinger', 'terry.reedy', 'gregory.p.smith', 'jcea', 'jaraco', 'Rhamphoryncus', 'blakeross', 'benjamin.peterson', 'KayEss', 'jonash', 'eric.snow']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1683368'
    versions = ['Python 3.0']

    Metadata

    Metadata

    Assignees

    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