Message415107
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. |
|
Date |
User |
Action |
Args |
2022-03-13 21:59:28 | matthew.rahtz | set | recipients:
+ matthew.rahtz, gvanrossum, serhiy.storchaka, JelleZijlstra, kj, mrahtz |
2022-03-13 21:59:28 | matthew.rahtz | set | messageid: <1647208768.9.0.726349872416.issue47006@roundup.psfhosted.org> |
2022-03-13 21:59:28 | matthew.rahtz | link | issue47006 messages |
2022-03-13 21:59:28 | matthew.rahtz | create | |
|