[New-bugs-announce] [issue21767] singledispatch docs should explicitly mention support for abstract base classes

Nick Coghlan report at bugs.python.org
Sun Jun 15 06:00:26 CEST 2014


New submission from Nick Coghlan:

functools.singledispatch is integrated with the abc module for fast single dispatch even in the absence of concrete inheritance. However, this isn't obvious from the documentation, so users may not realise they can register a single ABC with the generic function, and then multiple classes with the ABC, rather than having to register each class with the generic function directly.

----------
components: Library (Lib)
messages: 220611
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: singledispatch docs should explicitly mention support for abstract base classes
type: enhancement
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21767>
_______________________________________


More information about the New-bugs-announce mailing list