Re: [Python-ideas] Idea : for smarter assignment?

2017-07-25 Thread Pavol Lisy
On 7/25/17, MRAB wrote: > On 2017-07-25 18:02, Nick Timkovich wrote: >> On Fri, Jul 21, 2017 at 12:59 PM, David Mertz > > wrote: >> >> But you've left out quite a few binding operations. I might forget >> some, but

Re: [Python-ideas] Idea : for smarter assignment?

2017-07-25 Thread MRAB
On 2017-07-25 18:02, Nick Timkovich wrote: On Fri, Jul 21, 2017 at 12:59 PM, David Mertz > wrote: But you've left out quite a few binding operations. I might forget some, but here are several: Ned Batchelder had a good presentation at PyCon

Re: [Python-ideas] Idea : for smarter assignment?

2017-07-25 Thread Chris Angelico
On Wed, Jul 26, 2017 at 3:02 AM, Nick Timkovich wrote: > ...I think only includes one other assignment type from what you listed > (function parameters) that ironically is where one could maybe blur =/:, as > doing f(x=3) and f(**{x: 3}) are usually similar (I think some

Re: [Python-ideas] Idea : for smarter assignment?

2017-07-25 Thread Nick Timkovich
On Fri, Jul 21, 2017 at 12:59 PM, David Mertz wrote: > > But you've left out quite a few binding operations. I might forget some, > but here are several: > Ned Batchelder had a good presentation at PyCon 2015 about names/values/assignments/binding:

Re: [Python-ideas] Idea : for smarter assignment?

2017-07-21 Thread David Mertz
On Fri, Jul 21, 2017 at 10:19 AM, Brett Cannon wrote: > On Fri, 21 Jul 2017 at 10:08 Jason H wrote: > >> I experimented with Python in college and I've been for close to 20 years >> now. (Coming and going as needed) I love the language. But there is one >>

Re: [Python-ideas] Idea : for smarter assignment?

2017-07-21 Thread Jelle Zijlstra
2017-07-21 10:07 GMT-07:00 Jason H : > I experimented with Python in college and I've been for close to 20 years > now. (Coming and going as needed) I love the language. But there is one > annoyance that I continually run into. > > There are basically two assignment operators,

Re: [Python-ideas] Idea : for smarter assignment?

2017-07-21 Thread Brett Cannon
On Fri, 21 Jul 2017 at 10:08 Jason H wrote: > I experimented with Python in college and I've been for close to 20 years > now. (Coming and going as needed) I love the language. But there is one > annoyance that I continually run into. > > There are basically two assignment

Re: [Python-ideas] Idea : for smarter assignment?

2017-07-21 Thread Rhodri James
On 21/07/17 18:07, Jason H wrote: There are basically two assignment operators, based on context, = and : a = 1 { a: 1 } No there aren't. The colon isn't assigning at all, it's separating a key from a corresponding value. The object referenced by 'a' is unchanged by being part of a

[Python-ideas] Idea : for smarter assignment?

2017-07-21 Thread Jason H
I experimented with Python in college and I've been for close to 20 years now. (Coming and going as needed) I love the language. But there is one annoyance that I continually run into. There are basically two assignment operators, based on context, = and : a = 1 { a: 1 } They cannot be