Re: [Python-ideas] Dictionary destructing and unpacking.

2017-06-08 Thread Nick Badger
quot;am I unpacking the keys, the values, or both?", at the cost of a bit more typing. However, I'm a bit on the fence about this syntax as well: it's pretty easily confused with dictionary creation. Maybe the same thing but without the brackets? Just a thought I had this morning.

Re: [Python-ideas] Null coalescing operator

2016-10-27 Thread Nick Badger
ror blocks. You lose that with something like attrgetter('b.x.z', coalesce=True) -- it would behave identically, regardless of whether b, x, or z were missing, which is (oftentimes) not what you want. Nick Badger https://www.muterra.io https://www.nickbadger.com 2016-10-27 15:28 GMT-07:00

Re: [Python-ideas] Null coalescing operator

2016-10-26 Thread Nick Badger
Am Freitag, 14. Oktober 2016 23:11:48 UTC-7 schrieb Nick Coghlan: > > > Regarding the spelling details, my current preferences are as follows: > > * None-coalescing operator: x ?or y > * None-severing operator: x ?and y > * None-coalescing augmented assignment: x ?= y > * None-severing attribut