[Python-ideas] Adding Type[C] support to PEP 484 and typing.py

Guido van Rossum guido at python.org
Fri May 13 11:29:19 EDT 2016

On Fri, May 13, 2016 at 2:56 AM, Koos Zevenhoven <k7hoven at gmail.com> wrote:

> On Fri, May 13, 2016 at 5:52 AM, Guido van Rossum <guido at python.org>
> wrote:
> > Great. We'll be able to move this very quickly once we decide whether it
> > should be called Type[C] or Class[C]. The original proposal is Type[C],
> and
> > it's nice because it's a pun on `type`, just like Tuple[...] is a pun on
> > `tuple` (and similar for List etc.). But OTOH it really annotates a class
> > object, not an abstract type. I still prefer Type[C] -- anyone want to
> argue
> > that we're making a mistake? (I know, nobody's listening, everyone's too
> > busy arguing that Path should inherit from str. :-)
> >
> I'm definitely busy with things that have nothing to do with that, but
> why not SubType[C]. That's what it is, right?

It's longer and it's not clearer.

--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160513/92d4a043/attachment-0001.html>

More information about the Python-ideas mailing list