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 matthew.rahtz
Recipients JelleZijlstra, gvanrossum, kj, matthew.rahtz, mrahtz, serhiy.storchaka
Date 2022-03-13.21:59:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647208768.9.0.726349872416.issue47006@roundup.psfhosted.org>
In-reply-to
Content
Thanks for starting this, Jelle - I was a bit unsure about how to proceed here.

Given that https://github.com/python/cpython/pull/31800 is already merged, I'd also propose something halfway between the two extremes: return a sensible substitution when the logic to compute that isn't too onerous, and a new GenericAlias object when it is. The upsides are that we'd probably be able to return reasonable substitutions for the vast majority of cases, and that we wouldn't have to remove what's already been merged. The downsides would be lack of consistency, and the potential for changing rules about what does and doesn't return a full substitution as time goes on and new features are added.
History
Date User Action Args
2022-03-13 21:59:28matthew.rahtzsetrecipients: + matthew.rahtz, gvanrossum, serhiy.storchaka, JelleZijlstra, kj, mrahtz
2022-03-13 21:59:28matthew.rahtzsetmessageid: <1647208768.9.0.726349872416.issue47006@roundup.psfhosted.org>
2022-03-13 21:59:28matthew.rahtzlinkissue47006 messages
2022-03-13 21:59:28matthew.rahtzcreate