This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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
History
Date User Action Args
2020-05-12 15:36:41shihai1991setrecipients: + shihai1991, terry.reedy, ncoghlan, scoder, vstinner, petr.viktorin, Dormouse759, miss-islington
2020-05-12 15:36:41shihai1991setmessageid: <1589297801.58.0.825877583991.issue38787@roundup.psfhosted.org>
2020-05-12 15:36:41shihai1991linkissue38787 messages
2020-05-12 15:36:41shihai1991create