Skip to content

Remove explicit type check from inspect.Signature.from_function() #61361

@scoder

Description

@scoder
BPO 17159
Nosy @terryjreedy, @ncoghlan, @pitrou, @scoder, @larryhastings, @benjaminp, @merwok, @1st1
Files
  • inspect_sig.patch: proposed patch
  • inspect_sig_with_docstring.patch: same patch plus updated docstring
  • inspect_sig_2.patch: new patch that keeps the original TypeError if an attribute is not found
  • inspect_sig_3.patch: updated patch that also fixes the lower case "python" in the docstring
  • sig_func_ducktype_01.patch
  • sig_func_ducktype_02.patch
  • sig_func_ducktype_03.patch
  • divert_from_builtin.patch: divert Signature.from_builtin() to .from_function() for complete function interfaces
  • sig_cython_01.patch
  • sig_cython_02.patch: Tweaked unittest a bit
  • sig_cython_03.patch: A bit more testing, better coverage
  • sig_cython_latest_01.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 = 'https://github.com/1st1'
    closed_at = <Date 2014-02-21.23:37:49.170>
    created_at = <Date 2013-02-08.15:20:30.752>
    labels = ['type-feature', 'library']
    title = 'Remove explicit type check from inspect.Signature.from_function()'
    updated_at = <Date 2014-03-17.06:31:08.352>
    user = 'https://github.com/scoder'

    bugs.python.org fields:

    activity = <Date 2014-03-17.06:31:08.352>
    actor = 'python-dev'
    assignee = 'yselivanov'
    closed = True
    closed_date = <Date 2014-02-21.23:37:49.170>
    closer = 'yselivanov'
    components = ['Library (Lib)']
    creation = <Date 2013-02-08.15:20:30.752>
    creator = 'scoder'
    dependencies = []
    files = ['29003', '29004', '29007', '29096', '33813', '33814', '33837', '33846', '33847', '33849', '33854', '34072']
    hgrepos = []
    issue_num = 17159
    keywords = ['patch', 'needs review']
    message_count = 67.0
    messages = ['181674', '181676', '181677', '181678', '181702', '181704', '181805', '181806', '181868', '181879', '181887', '181940', '182262', '209675', '209708', '209726', '209728', '209729', '209775', '209787', '209812', '209816', '209820', '209821', '209822', '209824', '209827', '209896', '209907', '209910', '209913', '209915', '209918', '209954', '209966', '209968', '209972', '210003', '210004', '210051', '210081', '210084', '210085', '210099', '210101', '210103', '210104', '210105', '210109', '210112', '210116', '210117', '210122', '211174', '211176', '211181', '211182', '211183', '211184', '211188', '211191', '211891', '211892', '211895', '211910', '211914', '213829']
    nosy_count = 9.0
    nosy_names = ['terry.reedy', 'ncoghlan', 'pitrou', 'scoder', 'larry', 'benjamin.peterson', 'eric.araujo', 'python-dev', 'yselivanov']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17159'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions