Re: semi colonic

2023-02-24 Thread Peter J. Holzer
On 2023-02-23 15:56:54 -0500, avi.e.gr...@gmail.com wrote: > I am not sure it is fair to blame JSON for a design choice. We can't blame JSON (it has no agency), but as you say, it it was a choice. And we can absolutely blame Doug for making that choice! hp -- _ | Peter J. Holzer

Re: semi colonic

2023-02-23 Thread Chris Angelico
On Fri, 24 Feb 2023 at 17:36, Greg Ewing via Python-list wrote: > > On 24/02/23 9:26 am, avi.e.gr...@gmail.com wrote: > > Python One-Liners: Write Concise, Eloquent Python Like a Professional > > Illustrated Edition > > by Christian Mayer (Author) > > I didn't know there were any Professional Ill

Re: semi colonic

2023-02-23 Thread Greg Ewing via Python-list
On 24/02/23 9:26 am, avi.e.gr...@gmail.com wrote: Python One-Liners: Write Concise, Eloquent Python Like a Professional Illustrated Edition by Christian Mayer (Author) I didn't know there were any Professional Illustrated Editions writing Pythom. You learn something every day! :-) -- Greg --

Re: semi colonic

2023-02-23 Thread Chris Angelico
On Fri, 24 Feb 2023 at 06:29, Grant Edwards wrote: > > On 2023-02-23, rbowman wrote: > > On Wed, 22 Feb 2023 18:25:00 -0800 (PST), Hen Hanna wrote: > > > >> i sometimes put extra commas... as: > >> > >>[ 1, 2, 3, 4, ] > >> > >> so it is (or may be) easi

RE: semi colonic

2023-02-23 Thread avi.e.gross
-list Sent: Thursday, February 23, 2023 6:08 AM To: python-list@python.org Subject: Re: semi colonic On 23/02/2023 02:25, Hen Hanna wrote: > > i sometimes put extra commas... as: > > [ 1, 2, 3, 4, ] That is a good idea. Even more so when the

RE: semi colonic

2023-02-23 Thread avi.e.gross
]' >>> json.loads(json.dumps(mynest)) [1, 2, [3, 4], 5] So when are you running into problems? Is it when reading something from a file using a function expecting properly formatted JSON? -----Original Message- From: Python-list On Behalf Of Grant Edwards Sent: Thursday, Fe

Re: semi colonic

2023-02-23 Thread Grant Edwards
On 2023-02-23, rbowman wrote: > On Wed, 22 Feb 2023 18:25:00 -0800 (PST), Hen Hanna wrote: > >> i sometimes put extra commas... as: >> >>[ 1, 2, 3, 4, ] >> >> so it is (or may be) easier to add things later. > > That can bite you with things like JS

Re: semi colonic

2023-02-23 Thread Rob Cliffe via Python-list
On 23/02/2023 02:25, Hen Hanna wrote: i sometimes put extra commas... as: [ 1, 2, 3, 4, ] That is a good idea. Even more so when the items are on separate lines:     [         "spam",         "eggs",         "cheese",     ] and you may want to chang

RE: semi colonic

2023-02-23 Thread avi.e.gross
@python.org Subject: Re: semi colonic On 23/02/2023 00:58, avi.e.gr...@gmail.com wrote: > So can anyone point to places in Python where a semicolon is part of a > best or even good way to do anything? > > Yes. Take this bit of toy code which I just dreamed up. (Of course it is toy code;

Re: semi colonic

2023-02-23 Thread Rob Cliffe via Python-list
On 23/02/2023 00:58, avi.e.gr...@gmail.com wrote: So can anyone point to places in Python where a semicolon is part of a best or even good way to do anything? Yes.  Take this bit of toy code which I just dreamed up.  (Of course it is toy code; don't bother telling me how it could be written

Re: semi colonic

2023-02-23 Thread Dieter Maurer
Thomas Passin wrote at 2023-2-22 21:04 -0500: >On 2/22/2023 7:58 PM, avi.e.gr...@gmail.com wrote: > ... >> So can anyone point to places in Python where a semicolon is part of a best >> or even good way to do anything? > >Mostly I use it to run small commands on the command line with python >-c. e

Re: semi colonic

2023-02-23 Thread rbowman
On Wed, 22 Feb 2023 18:25:00 -0800 (PST), Hen Hanna wrote: > i sometimes put extra commas... as: > >[ 1, 2, 3, 4, ] > > so it is (or may be) easier to add things later. That can bite you with things like JSON that aren't very forgiving. The same

RE: semi colonic

2023-02-23 Thread avi.e.gross
if anyone is taking this seriously. -Original Message- From: Python-list On Behalf Of Greg Ewing via Python-list Sent: Thursday, February 23, 2023 1:28 AM To: python-list@python.org Subject: Re: semi colonic On 23/02/23 1:58 pm, avi.e.gr...@gmail.com wrote: > Would anything seri

Re: semi colonic

2023-02-22 Thread Greg Ewing via Python-list
On 23/02/23 1:58 pm, avi.e.gr...@gmail.com wrote: Would anything serious break if it was deprecated for use as a statement terminator? Well, it would break all the code of people who like to write code that way. They might get a bit miffed if we decide that their code is not serious. :-) On t

Re: semi colonic

2023-02-22 Thread Thomas Passin
old /usr/lib/python2.7/lib-dynload /usr/lib/python2.7/site-packages /usr/lib/python2.7/site-packages/gtk-2.0 -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Wednesday, February 22, 2023 9:05 PM To: python-list@python.org Subject: Re: semi colonic On 2/22/2023 7:58 PM,

RE: semi colonic

2023-02-22 Thread avi.e.gross
inal Message- From: Python-list On Behalf Of Thomas Passin Sent: Wednesday, February 22, 2023 9:05 PM To: python-list@python.org Subject: Re: semi colonic On 2/22/2023 7:58 PM, avi.e.gr...@gmail.com wrote: > Thomas, > > This is one of many little twists I see between languages whe

Re: semi colonic

2023-02-22 Thread Hen Hanna
On Wednesday, February 22, 2023 at 6:21:13 PM UTC-8, Rob Cliffe wrote: > On 23/02/2023 02:04, Thomas Passin wrote: > > On 2/22/2023 7:58 PM, avi.e...@gmail.com wrote: > >> > >> > >> So can anyone point to places in Python where a semicolon is part of > >> a best > >> or even good way to do an

Re: semi colonic

2023-02-22 Thread Rob Cliffe via Python-list
On 23/02/2023 02:04, Thomas Passin wrote: On 2/22/2023 7:58 PM, avi.e.gr...@gmail.com wrote: So can anyone point to places in Python where a semicolon is part of a best or even good way to do anything?  I use the semicolon (once in a while) is for quick debugging.  I might add as line l

Re: semi colonic

2023-02-22 Thread Thomas Passin
On 2/22/2023 7:58 PM, avi.e.gr...@gmail.com wrote: Thomas, This is one of many little twists I see between languages where one feature impacts use or even the need for another feature. So can anyone point to places in Python where a semicolon is part of a best or even good way to do anything?

semi colonic

2023-02-22 Thread avi.e.gross
Thomas, This is one of many little twists I see between languages where one feature impacts use or even the need for another feature. So can anyone point to places in Python where a semicolon is part of a best or even good way to do anything? Some older languages had simple parsers/compilers tha