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
;, and suggested a warning for implicit concatenation between adjacent strings. I don't really know why you renamed it "Lists And Extra Commas at end". Have you read the thread and my post? Cheers. -- https://mail.python.org/mailman/listinfo/python-list

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

Lists And Extra Commas at end

2019-12-24 Thread Avi Gross via Python-list
Marco, Python is used by some in an interactive mode but also in more of a batch mode such as on a server. The former can possibly see a SyntaxWarning. Do you want that as a default or something you set when you start the Python Interpreter or perhaps a command within it? I note a brief search