[issue42319] The `functools.singledispatchmethod` example in the document cannot run

2020-11-12 Thread hongweipeng
hongweipeng added the comment: Thanks,so close this one due to duplicate issue. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42319] The `functools.singledispatchmethod` example in the document cannot run

2020-11-12 Thread Jakub Stasiak
Jakub Stasiak added the comment: There's an earlier issue created that relates to this (https://bugs.python.org/issue39679) and there are some possible solutions to get singledispatchmethod and classmethod work there. -- nosy: +jstasiak ___

[issue42319] The `functools.singledispatchmethod` example in the document cannot run

2020-11-11 Thread hongweipeng
Change by hongweipeng : -- keywords: +patch pull_requests: +22139 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23242 ___ Python tracker ___

[issue42319] The `functools.singledispatchmethod` example in the document cannot run

2020-11-11 Thread hongweipeng
New submission from hongweipeng : https://docs.python.org/zh-cn/3.8/library/functools.html#functools.singledispatchmethod as the code: ``` from functools import singledispatchmethod class Negator: @singledispatchmethod @classmethod def neg(cls, arg): raise