Re: Lists And Extra Commas at end

2019-12-24 Thread Cameron Simpson
On 25Dec2019 01:20, mail.python@marco.sulla.e4ward.com wrote: About the extra comma, it's da**ed useful: [...] The real problem is this one: a = 1, Unreadable and prone to subtle errors, because maybe you added the comma by mistake. Caution: Debugging Nightmares. Hoo, yes. Only the ot

Re: Lists And Extra Commas at end

2019-12-24 Thread Marco Sulla via Python-list
On Wed, 25 Dec 2019 at 00:56, Avi Gross wrote: > I may not be understanding what you are objecting to I, sir, am objecting that I replied to a topic, and you answered to me, but in another topic. You could have respond to me in the correct topic, and then create this other one (that I'm not real

Re: Lists And Extra Commas at end

2019-12-24 Thread Chris Angelico
On Wed, Dec 25, 2019 at 10:50 AM Avi Gross via Python-list wrote: > > Cameron, > > I am not at all against the feature. I like it as my programming style is > like you describe. One entry per line indented at the same level, in > multiple languages. I often do graphics where I generate an image th

RE: Lists And Extra Commas at end

2019-12-24 Thread Avi Gross via Python-list
convenience is in some sense removing a mathematical symmetry, but so what? -Original Message- From: Cameron Simpson Sent: Tuesday, December 24, 2019 5:12 PM To: Avi Gross Cc: python-list@python.org Subject: Re: Lists And Extra Commas at end On 24Dec2019 16:48, Avi Gross wrote: >

Re: Lists And Extra Commas at end

2019-12-24 Thread Marco Sulla via Python-list
On Tue, 24 Dec 2019 at 22:51, Avi Gross via Python-list wrote: > So, is that a feature you want warnings about? After all, a dangling comma > may simply mean you left something out and meant to add later? .completely OT. I responded to a topic named "List and missing commas", and suggested a

Re: Lists And Extra Commas at end

2019-12-24 Thread Cameron Simpson
On 24Dec2019 16:48, Avi Gross wrote: Let me switch gears to the terminal comma situation. Unlike many languages, Python decided a dangling comma is perfectly allowable in many situations, perhaps all. a=[1,2,3,] a [1, 2, 3] [...] And, of course, you can use the same dangling comma in makin