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 <[email protected]> <http://bugs.python.org/issue21767> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
