cpython icon indicating copy to clipboard operation
cpython copied to clipboard

Implement subclass hooks for asyncio abstract classes

Open asvetlov opened this issue 7 years ago • 1 comments

BPO 33624
Nosy @asvetlov, @1st1, @ilevkivskyi

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 = None
created_at = <Date 2018-05-23.19:18:18.620>
labels = ['type-feature', '3.8', 'expert-asyncio']
title = 'Implement subclass hooks for asyncio abstract classes'
updated_at = <Date 2018-05-26.13:02:01.777>
user = 'https://github.com/asvetlov'

bugs.python.org fields:

activity = <Date 2018-05-26.13:02:01.777>
actor = 'levkivskyi'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['asyncio']
creation = <Date 2018-05-23.19:18:18.620>
creator = 'asvetlov'
dependencies = []
files = []
hgrepos = []
issue_num = 33624
keywords = []
message_count = 1.0
messages = ['317438']
nosy_count = 3.0
nosy_names = ['asvetlov', 'yselivanov', 'levkivskyi']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue33624'
versions = ['Python 3.8']

asvetlov avatar May 23 '18 19:05 asvetlov

To make clean inheritance hierarchy of objects implemented by third-party loop implementations. Now is impossible to implement AbstractServer in C or Cython.

See also https://github.com/MagicStack/uvloop/issues/131

asvetlov avatar May 23 '18 19:05 asvetlov

Even if we add this we indefinitely need to support objects which do not inherit from these so this is not worth for the minority of the cases.

kumaraditya303 avatar Apr 19 '23 10:04 kumaraditya303