<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 22, 2016 at 11:42 AM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> This makes it necessary to use string representation for names<br>
> that are not yet bound, which affects almost every class definition.<br>
<br>
</span>Almost every class? Really? I find that implausible. Still, I can see it<br>
affecting *many* class definitions, so let's not quibble.<br></blockquote><div><br></div><div>I would say this affects a "rare class here and there."  Almost all typing will be with things defined in the `typing` module (or built-ins).  I guess once in a while we'll see e.g.  `Sequence[CustomThing]`, but it will be uncommon for that typing involving `CutomThing` to be within CustomThing itself (well, unless you use much more recursion than Python encourages).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-1 on complicating the simple Python model that expressions are<br>
evaluated when they are reached.<br></blockquote><div><br></div><div>I think there is a decent argument for a more general concept of macros, or symbols, or simpler delayed evaluation than lambda for Python in general.  I see places where this would be very nice for Pandas, for example, and for Dask (I work with the developers of both of those projects).</div><div><br></div><div>In such a hypothetical future world we might come to allow, e.g. `Sequence[#CustomThing]` where some general lazy facility or indirection is indicated by the '#' (just a placeholder for this comment, not a proposal).  But if that comes about, it should be available everywhere, not only in annotations.</div><div> </div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Keeping medicines from the bloodstreams of the sick; food <br>from the bellies of the hungry; books from the hands of the <br>uneducated; technology from the underdeveloped; and putting <br>advocates of freedom in prisons.  Intellectual property is<br>to the 21st century what the slave trade was to the 16th.<br></div>
</div></div>