Re: [Python-ideas] Delay evaluation of annotations

2016-09-23 Thread Chris Angelico
On Fri, Sep 23, 2016 at 11:58 PM, אלעזר wrote: > What other context you see where the result of an expression is not intended > to be used at all? Well there's Expression statements, which are evaluated > for side effect. There's docstrings, which are a kind of annotations.

Re: [Python-ideas] Delay evaluation of annotations

2016-09-23 Thread אלעזר
On Fri, Sep 23, 2016 at 3:11 PM Steven D'Aprano wrote: > On Fri, Sep 23, 2016 at 10:17:15AM +, אלעזר wrote: > > On Fri, Sep 23, 2016 at 6:06 AM Steven D'Aprano > wrote: > > > On Thu, Sep 22, 2016 at 07:21:18PM +, אלעזר wrote: > > > > On Thu, Sep

Re: [Python-ideas] Delay evaluation of annotations

2016-09-23 Thread Steven D'Aprano
On Fri, Sep 23, 2016 at 10:17:15AM +, אלעזר wrote: > On Fri, Sep 23, 2016 at 6:06 AM Steven D'Aprano wrote: > > On Thu, Sep 22, 2016 at 07:21:18PM +, אלעזר wrote: > > > On Thu, Sep 22, 2016 at 9:43 PM Steven D'Aprano wrote: > > > > On Thu, Sep 22, 2016 at 05:19:12PM

Re: [Python-ideas] Delay evaluation of annotations

2016-09-23 Thread אלעזר
On Fri, Sep 23, 2016 at 6:24 AM Nick Coghlan wrote: > On 23 September 2016 at 13:06, Steven D'Aprano > wrote: > > On Thu, Sep 22, 2016 at 07:21:18PM +, אלעזר wrote: > >> "Expression" is something that you need its value right > >> now, and

Re: [Python-ideas] Delay evaluation of annotations

2016-09-23 Thread אלעזר
On Fri, Sep 23, 2016 at 6:06 AM Steven D'Aprano wrote: > On Thu, Sep 22, 2016 at 07:21:18PM +, אלעזר wrote: > > On Thu, Sep 22, 2016 at 9:43 PM Steven D'Aprano > wrote: > > > > > On Thu, Sep 22, 2016 at 05:19:12PM +, אלעזר wrote: > > > > Hi all,

Re: [Python-ideas] Delay evaluation of annotations

2016-09-23 Thread אלעזר
On Fri, Sep 23, 2016 at 5:54 AM Chris Angelico wrote: > On Fri, Sep 23, 2016 at 12:35 PM, Steven D'Aprano > wrote: > > The straight-forward and simple way of writing a recursive spam() > > function surprises beginners, but they might go years or their

Re: [Python-ideas] Delay evaluation of annotations

2016-09-23 Thread Nick Coghlan
On 23 September 2016 at 15:50, Greg Ewing wrote: > אלעזר wrote: >> >> it feels like a >> placeholder for this meaning would be better. E.g.: >> >> class A: >> def __add__(self, other: CLS) -> CLS: ... > > > That's fine for a class that refers to