2 Comments

Great article. I can definitely relate to making iter[] and callable[] type hint generics. Have you considered submitting that as an extension to PEP 585? Similarly, I do feel a Path literal is a fantastic idea and could be submitted as a PEP.

W.r.t a better def for yield, yield from would match the equivalent functionality of return splines() if I'm not mistaken.

Expand full comment
author

I brought the idea once, but Guido said no.

That doesn't mean it can't happen, just that the proposal must be submitted again at a later date. Sometimes I'm surprised that things that got rejected 10 years ago on the mailing list are now adopted.

A formal PEP could help, but I'll be honest, I don't think I have the time to champion it. And making a PEP without offering to code it afterward is a bit weak.

Expand full comment