Message368735
| Author |
shihai1991 |
| Recipients |
Dormouse759, miss-islington, ncoghlan, petr.viktorin, scoder, shihai1991, terry.reedy, vstinner |
| Date |
2020年05月12日.15:36:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1589297801.58.0.825877583991.issue38787@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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 |
|