➜

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.

作者 serhiy.storchaka
收信人 corona10, gvanrossum, kj, serhiy.storchaka
日期 2021-07-16.17:32:03
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1626456723.37.0.550086249638.issue44654@roundup.psfhosted.org>
In-reply-to
内容
> Yeah I noticed it re-lookups __module__ unnecessarily multiple times for the same type.

Actually I thought about this change, but did not implement it. Because it does not look performance critical, and future versions will likely do different tests (for example, testing the existence of special attribute, or check against lazily imported and cached classes from the typing module). Also, the test for TypeVar can be shared between genericaliasobject.c and unionobject.c.

It is mostly simple clean up, a line here, two lines there. genericaliasobject.c and unionobject.c could be merged in a single file, because they share several functions not used anywhere more. We perhaps merge them if more C implementations for typing be added in future.
历史
日期 用户 动作 参数
2021-07-16 17:32:03serhiy.storchaka修改recipients: + serhiy.storchaka, gvanrossum, corona10, kj
2021-07-16 17:32:03serhiy.storchaka修改messageid: <1626456723.37.0.550086249638.issue44654@roundup.psfhosted.org>
2021-07-16 17:32:03serhiy.storchaka链接issue44654 messages
2021-07-16 17:32:03serhiy.storchaka创建