[issue36457] functools.singledispatchmethod interacts poorly with subclasses
Tim Mitchell
report at bugs.python.org
Fri Mar 18 02:05:56 EDT 2022
Tim Mitchell <tim.mitchell at seequent.com> added the comment:
I've come up with a version that does not require a base class.
Seems a bit hacky as the descriptor __get__ method now modifies the class to put the dispatch table in place the first time the method is accessed.
----------
Added file: https://bugs.python.org/file50688/singledispatchmethod.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36457>
_______________________________________
More information about the Python-bugs-list
mailing list