<p dir="ltr">This is bikeshedding a bit, but a keyword that looks good to me:</p>
<p dir="ltr">expose Typevar as T<br>
expose Symbol as X<br>
</p>
<div class="gmail_quote">On May 31, 2016 2:06 AM, "Paul Moore" <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 31 May 2016 at 09:56, Stephen J. Turnbull <<a href="mailto:stephen@xemacs.org">stephen@xemacs.org</a>> wrote:<br>
> I know you don't think a keyword works for you, but<br>
> either the recently reraised "def <name> = <type-expr>" or perhaps<br>
> "type <name>: <type-expr>" make more sense to me right out of the box.<br>
<br>
I was thinking along the lines of "name <some_keyword> callable",<br>
which I don't think works because it needs some "punctuation" to<br>
separate the name from the callable.<br>
<br>
But "def name = callable" (or some other preceding keyword combined<br>
with =) might work. I don't like "type" though, as the point here (I<br>
thought - see below) is to come up with a construct useful for more<br>
than just types.<br>
<br>
> I'm +1 for stopping the bikeshedding until we've all got a lot of<br>
> stubfile reading under our belts.<br>
<br>
If this was simply about type definitions, I'd agree. But I thought<br>
the point of Guido's post was that having seen two examples (TypeVar<br>
and Symbol) is there a more general approach that might cover these<br>
two cases as well as others? So just looking at the problem in terms<br>
of stub files isn't really the point here.<br>
<br>
Paul<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div>