Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods #72723

Closed
nathanielmanistaatgoogle mannequin opened this issue Oct 25, 2016 · 2 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@nathanielmanistaatgoogle
Copy link
Mannequin

BPO 28537
Nosy @aleaxit, @bitdancer, @nathanielmanistaatgoogle
Superseder
  • bpo-5996: abstract class instantiable when subclassing built-in types
  • Files
  • abc_what.py
  • 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 2016-10-26.00:44:33.168>
    created_at = <Date 2016-10-25.23:42:42.012>
    labels = ['3.7', 'type-bug', 'library']
    title = 'abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods'
    updated_at = <Date 2016-10-26.00:44:33.166>
    user = 'https://github.com/nathanielmanistaatgoogle'

    bugs.python.org fields:

    activity = <Date 2016-10-26.00:44:33.166>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-10-26.00:44:33.168>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2016-10-25.23:42:42.012>
    creator = 'Nathaniel Manista'
    dependencies = []
    files = ['45226']
    hgrepos = []
    issue_num = 28537
    keywords = []
    message_count = 2.0
    messages = ['279465', '279473']
    nosy_count = 4.0
    nosy_names = ['aleax', 'r.david.murray', 'cvrebert', 'Nathaniel Manista']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '5996'
    type = 'behavior'
    url = 'https://bugs.python.org/issue28537'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    @nathanielmanistaatgoogle
    Copy link
    Mannequin Author

    The attached file when executed should fail (raise an exception) one line above where it actually does. Right?

    I discovered this in 2.7 but have confirmed that it's still a problem in 3.6.0b2.

    @nathanielmanistaatgoogle nathanielmanistaatgoogle mannequin added 3.7 (EOL) end of life stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Oct 25, 2016
    @bitdancer
    Copy link
    Member

    Thanks for the report, but this is a duplicate of bpo-5996.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant