hai shi <shihai1...@126.com> added the comment:
In PR19982, petr have mentioned that `PyType_GetModule` can not worked if the type is the subtype. I try to use pep573 in functools, I get the error info from testcases: ====================================================================== ERROR: test_arg_combinations (test.test_functools.TestPartialCSubclass) ---------------------------------------------------------------------- Traceback (most recent call last): File "/temp/shihai/cpython/Lib/test/test_functools.py", line 109, in test_arg_combinations p = self.partial(capture) TypeError: PyType_GetModule: Type 'CPartialSubclass' has no associated module ====================================================================== ERROR: test_attributes (test.test_functools.TestPartialCSubclass) ---------------------------------------------------------------------- Traceback (most recent call last): File "/temp/shihai/cpython/Lib/test/test_functools.py", line 71, in test_attributes p = self.partial(capture, 1, 2, a=10, b=20) TypeError: PyType_GetModule: Type 'CPartialSubclass' has no associated module ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38787> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com