You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-5996: abstract class instantiable when subclassing built-in types
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=Noneclosed_at=<Date2019-02-12.17:23:38.104>created_at=<Date2019-02-10.17:37:17.613>labels= ['expert-IO']
title="io.IOBase subclasses don't play nice with abc.abstractmethod"updated_at=<Date2019-02-12.17:23:38.101>user='https://bugs.python.org/JonMcMahon'
Subclasses of io.IOBase can be instantiated with abstractmethod()s, even though ABCs are supposed to prevent this from happening. I'm guessing this has to do with io using the _io C module because the alternative pure-python implementation _pyio doesn't seem to have this issue. I'm using Python 3.6.7
This looks to be a general problem with built-in classes using ABCMeta, per bpo-31127 (Abstract classes derived from built-in classes don't block instance creation).
Progress (or lack thereof) is being tracked on the more specifically named bpo-5996 (abstract class instantiable when subclassing dict).
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: