Hi all, Something that's on many of our wishlists is support for variadic generics. Here's a first draft of a PEP detailing how they might work. https://docs.google.com/document/d/1oXWyAtnv0-pbyJud8H5wkpIk8aajbkX-leJ8JXsE... (Attached is also an HTML render of the RST for easier reading.) This is an early draft so there are likely many things we're still missing. Please do take a look and give us your feedback (in the doc directly or by email, whichever is easiest for you). Thanks! Matthew
On Wed, Oct 7, 2020 at 11:46 PM Matthew Rahtz via Python-ideas <python-ideas@python.org> wrote:
Hi all,
Something that's on many of our wishlists is support for variadic generics. Here's a first draft of a PEP detailing how they might work.
Does the "many" there include any core devs who would sponsor your PEP? If so, the best way to move forward would be to get someone to sign off on it, and actually publish it as a proper document. ChrisA
If this receives positive feedback on typing-sig I would definitely sponsor it. But I'd first like to have the discussion there (and the time to read it). (FWIW I would prefer the discussion to happen on typing-sig, not python-ideas.) On Wed, Oct 7, 2020 at 7:04 AM Chris Angelico <rosuav@gmail.com> wrote:
On Wed, Oct 7, 2020 at 11:46 PM Matthew Rahtz via Python-ideas <python-ideas@python.org> wrote:
Hi all,
Something that's on many of our wishlists is support for variadic
generics. Here's a first draft of a PEP detailing how they might work.
Does the "many" there include any core devs who would sponsor your PEP? If so, the best way to move forward would be to get someone to sign off on it, and actually publish it as a proper document.
ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/FKXO4K... Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>
On 7/10/20 11:05 pm, Matthew Rahtz via Python-ideas wrote:
Something that's on many of our wishlists is support for variadic generics. Here's a first draft of a PEP detailing how they might work.
https://docs.google.com/document/d/1oXWyAtnv0-pbyJud8H5wkpIk8aajbkX-leJ8JXsE...
Generally looks good to me, although the name ListVariadic seems a bit jargony (and worse, appears to be jargon imported from another language). I think something like TypeListVar would be clearer. -- Greg
On 10/7/20 2:11 PM, Greg Ewing wrote:
Generally looks good to me, although the name ListVariadic seems a bit jargony (and worse, appears to be jargon imported from another language). I think something like TypeListVar would be clearer.
Agreed. (I was just about to write my own comment saying the same thing.) I was thinking "TypeVarList" originally, but I also like "TypeListVar". -- David Foster | Seattle, WA, USA Contributor to TypedDict support for mypy
participants (5)
-
Chris Angelico
-
David Foster
-
Greg Ewing
-
Guido van Rossum
-
Matthew Rahtz