Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-18 Thread Mikhail V
On 18 November 2016 at 01:26, Steven D'Aprano wrote: > At this point, I think it is a waste of time to continue discussing > alternatives to augmented assignment syntax. I'm happy to discuss the > culture of Python and how we decide on making changes to the language, > but I am not interested in d

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-18 Thread Mikhail V
On 18 November 2016 at 01:26, Steven D'Aprano wrote: Sorry, just for a second one more comment to your comment. BTW, Steve, there is no any "battle", only peace and pleasure. And exchange of knowledge and opinions of adult intelligents. > Mikhail, you are missing the point that people have alre

Re: [Python-ideas] Generator-based context managers can't skip __exit__

2016-11-18 Thread Sven R. Kunze
On 06.11.2016 09:07, Steven D'Aprano wrote: I'm having a lot of difficulty in understanding your use-case here, and so maybe I've completely misunderstood something. Although, this thread is dead for a week or so, I am still curious to hear the real-world use-case. I am equally puzzled by the

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-18 Thread Ethan Furman
On 11/18/2016 11:19 AM, Mikhail V wrote: On 18 November 2016 at 01:26, Steven D'Aprano wrote: I'm not seeing D'Aprano's posts, except in Mikhail's replies -- Mikhail, is he replying directly to you? If so, please stop including Python Ideas in your replies. Thank you. -- ~Ethan~ __

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-18 Thread Ethan Furman
On 11/18/2016 11:34 AM, Chris Angelico wrote: Hmm. I'm seeing them. Where are you reading -ideas? Is there possibly a glitch between mailing list and newsgroup? Yeah, I'm using the mailing list. On 11/18/2016 11:39 AM, Mikhail V wrote: I am really sorry :( Didn't intended it Something wi

Re: [Python-ideas] Generator-based context managers can't skip __exit__

2016-11-18 Thread Ram Rachum
Sure, here are a couple of use cases: 1. I'm making a program that lets people lease machines. They can issue a command to lease 7 machines. When they do, my program leases them one by one and adds them all to an exit stack, so in case there aren't 7 machines available, all the machines we leased

Re: [Python-ideas] Generator-based context managers can't skip __exit__

2016-11-18 Thread Ethan Furman
On 11/18/2016 12:42 PM, Ram Rachum wrote: Sure, here are a couple of use cases: 1. I'm making a program that lets people lease machines. They can issue a command to lease 7 machines. When they do, my program leases them one by one and adds them all to an exit stack, so in case there aren't 7

Re: [Python-ideas] Generator-based context managers can't skip __exit__

2016-11-18 Thread Greg Ewing
Ram Rachum wrote: 1. I'm making a program that lets people lease machines. They can issue a command to lease 7 machines. ... If everything goes fine, I do pop_all on the exit stack so it doesn't get exited and the machines stay leased, Seems to me that would be done more easily and clearly wit

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-18 Thread Steven D'Aprano
On Fri, Nov 18, 2016 at 11:31:21AM -0800, Ethan Furman wrote: > On 11/18/2016 11:19 AM, Mikhail V wrote: > >On 18 November 2016 at 01:26, Steven D'Aprano wrote: > > I'm not seeing D'Aprano's posts, except in Mikhail's replies -- Mikhail, is > he replying directly to you? If so, please stop inclu

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-18 Thread Chris Angelico
On Sat, Nov 19, 2016 at 10:13 AM, Steven D'Aprano wrote: > Later I see a reply from Ethan to a question posed by Chris Angelico > > http://code.activestate.com/lists/python-ideas/43276/ > > but I never received Chris' question. Neither Chris' question nor > Ethan's response show up in the pipermai

Re: [Python-ideas] Generator-based context managers can't skip __exit__

2016-11-18 Thread Nick Coghlan
On 19 November 2016 at 07:00, Greg Ewing wrote: > Ram Rachum wrote: >> >> 1. I'm making a program that lets people lease machines. They can issue a >> command to lease 7 machines. ... If everything goes fine, I do pop_all on >> the exit stack so it doesn't get exited and the machines stay leased,

Re: [Python-ideas] Technical possibilities for a syntax [was: Reverse assignment operators ...]

2016-11-18 Thread Nikolaus Rath
On Nov 18 2016, Ethan Furman wrote: > On 11/18/2016 11:19 AM, Mikhail V wrote: >> On 18 November 2016 at 01:26, Steven D'Aprano wrote: > > I'm not seeing D'Aprano's posts, except in Mikhail's replies FWIW, I can see them on Gmane. Best, -Nikolaus -- GPG encrypted emails preferred. Key id: 0x