Skip to content

Inspect.getsource raises wrong error on classes in interactive session #88814

Closed
@akulakov

Description

@akulakov
BPO 44648
Nosy @jaraco, @aroberge, @ambv, @pablogsal, @miss-islington, @FFY00, @akulakov
PRs
  • bpo-44648: Fix error type in inspect.getsource() in interactive session #27171
  • [3.10] bpo-44648: Fix error type in inspect.getsource() in interactive session (GH-27171) #27495
  • bpo-44771: rename namespacedata01 to namespacedata #27484
  • bpo-44771: Apply changes from importlib_resources 5.2.1 #27436
  • 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 2021-07-30.17:47:14.167>
    created_at = <Date 2021-07-15.18:31:38.611>
    labels = ['type-bug', '3.10', '3.11']
    title = 'Inspect.getsource raises wrong error on classes in interactive session'
    updated_at = <Date 2021-08-02.09:59:39.832>
    user = 'https://github.com/akulakov'

    bugs.python.org fields:

    activity = <Date 2021-08-02.09:59:39.832>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-07-30.17:47:14.167>
    closer = 'lukasz.langa'
    components = []
    creation = <Date 2021-07-15.18:31:38.611>
    creator = 'andrei.avk'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44648
    keywords = ['patch']
    message_count = 11.0
    messages = ['397573', '397629', '397631', '397634', '397636', '398579', '398580', '398588', '398589', '398590', '398748']
    nosy_count = 8.0
    nosy_names = ['jaraco', 'aroberge', 'lukasz.langa', 'pablogsal', 'miss-islington', 'FFY00', 'andrei.avk', 'othmaneelbouri1']
    pr_nums = ['27171', '27495', '27484', '27436']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44648'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixestype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions