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 jaraco
Recipients brett.cannon, jaraco, sobolevn
Date 2022-01-27.14:29:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643293793.56.0.992938845872.issue46546@roundup.psfhosted.org>
In-reply-to
Content
Thanks Nikita for the report. I agree, it's inelegant that this property leaks. Because this code is synced with importlib_metadata, I'm not sure it's worth the effort of changing it here. Your change here implies a cherry-pick to the backport and updating its changelog there too.

I'd be more inclined to accept a change like this on importlib_metadata, which has a faster iteration and whose changes get naturally incorporated into CPython periodically.

What's the harm in leaving this attribute on a class that is itself standing in for deprecated behavior and slated for removal?
History
Date User Action Args
2022-01-27 14:29:53jaracosetrecipients: + jaraco, brett.cannon, sobolevn
2022-01-27 14:29:53jaracosetmessageid: <1643293793.56.0.992938845872.issue46546@roundup.psfhosted.org>
2022-01-27 14:29:53jaracolinkissue46546 messages
2022-01-27 14:29:53jaracocreate