Skip to content

abstractmethod does not work when deriving from Exception #73836

Description

@chrysn
mannequin
BPO 29650
Nosy @chrysn, @zhangyangyu
Superseder
  • bpo-5996: abstract class instantiable when subclassing built-in types
  • Files
  • demo.py: demo that should throw TypeError
  • 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 2017-02-26.08:06:38.894>
    created_at = <Date 2017-02-25.16:46:46.142>
    labels = ['type-bug', '3.7']
    title = 'abstractmethod does not work when deriving from Exception'
    updated_at = <Date 2017-02-26.08:06:38.892>
    user = 'https://github.com/chrysn'

    bugs.python.org fields:

    activity = <Date 2017-02-26.08:06:38.892>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-02-26.08:06:38.894>
    closer = 'serhiy.storchaka'
    components = []
    creation = <Date 2017-02-25.16:46:46.142>
    creator = 'chrysn'
    dependencies = []
    files = ['46668']
    hgrepos = []
    issue_num = 29650
    keywords = []
    message_count = 2.0
    messages = ['288571', '288590']
    nosy_count = 2.0
    nosy_names = ['chrysn', 'xiang.zhang']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '5996'
    type = 'behavior'
    url = 'https://bugs.python.org/issue29650'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifetype-bugAn unexpected behavior, bug, or error

      Fields

      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions