<p dir="ltr">Bracketing for a moment what keyword might be used, a thing I like about this syntax is that it can work for multiple names naturally. E.g.</p>
<p dir="ltr"> expose Symbol as x, y, z</p>
<p dir="ltr">Or with a different word:</p>
<p dir="ltr"> define Typevar as T, S, R</p>
<p dir="ltr">For things like namedtuple that need more arguments, you'd need to use functools.partial to create the single argument callable to match the syntax. </p>
<div class="gmail_quote">On May 31, 2016 8:44 AM, "Steven D'Aprano" <<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, May 31, 2016 at 08:27:28AM -0700, David Mertz wrote:<br>
> This is bikeshedding a bit, but a keyword that looks good to me:<br>
><br>
> expose Typevar as T<br>
> expose Symbol as X<br>
<br>
"expose" sounds like it is taking something hidden or private and<br>
exposing it to the public. It doesn't give any hint that it takes the<br>
name T and uses it as an argument to Typevar. I would take it as<br>
meaning:<br>
<br>
take the (possibly internal or private) thing Typevar, and bind it to<br>
the name T<br>
<br>
with no hint that Typevar was being called.<br>
<br>
<br>
--<br>
Steve<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>