Re: [Python-Dev] assignment expressions: an alternative alternative proposal

2018-04-25 Thread Chris Angelico
On Thu, Apr 26, 2018 at 1:46 AM, Guido van Rossum wrote: > On Wed, Apr 25, 2018 at 2:27 AM, Steve Holden wrote: >> >> On Wed, Apr 25, 2018 at 6:16 AM, Steven D'Aprano >> wrote: >>> >>> On Tue, Apr 24, 2018 at 03:54:30PM -0700, Guido van Rossum wrote: >>> >>> > We should really take this back to

Re: [Python-Dev] assignment expressions: an alternative alternative proposal

2018-04-25 Thread Guido van Rossum
On Wed, Apr 25, 2018 at 2:27 AM, Steve Holden wrote: > On Wed, Apr 25, 2018 at 6:16 AM, Steven D'Aprano > wrote: > >> On Tue, Apr 24, 2018 at 03:54:30PM -0700, Guido van Rossum wrote: >> >> > We should really take this back to python-ideas at this point. >> >> Please no :-( >> > > ​+1 > Maybe I

Re: [Python-Dev] assignment expressions: an alternative alternative proposal

2018-04-25 Thread Steve Holden
On Wed, Apr 25, 2018 at 6:16 AM, Steven D'Aprano wrote: > On Tue, Apr 24, 2018 at 03:54:30PM -0700, Guido van Rossum wrote: > > > We should really take this back to python-ideas at this point. > > Please no :-( > ​+1 ​ ___ Python-Dev mailing list Pytho

Re: [Python-Dev] assignment expressions: an alternative alternative proposal

2018-04-24 Thread Steven D'Aprano
On Tue, Apr 24, 2018 at 03:54:30PM -0700, Guido van Rossum wrote: > We should really take this back to python-ideas at this point. Please no :-( Variants of "let" etc were discussed earlier and didn't seem to get much interest. Although I don't think "var" specifically was suggested before, "l

Re: [Python-Dev] assignment expressions: an alternative alternative proposal

2018-04-24 Thread Guido van Rossum
We should really take this back to python-ideas at this point. On Tue, Apr 24, 2018 at 3:16 PM, Antoine Pitrou wrote: > On Tue, 24 Apr 2018 09:38:33 -0400 > Yury Selivanov wrote: > > I propose to use the following syntax for assignment expressions: > > > > ( NAME = expr ) > > > > I know tha

Re: [Python-Dev] assignment expressions: an alternative alternative proposal

2018-04-24 Thread Antoine Pitrou
On Tue, 24 Apr 2018 09:38:33 -0400 Yury Selivanov wrote: > I propose to use the following syntax for assignment expressions: > > ( NAME = expr ) > > I know that it was proposed before and this idea was rejected, because > accidentally using '=' in place of '==' is a pain point in > C/C++/Jav