Tim Mitchell <tim.mitch...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue36457> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com