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
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
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
--
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
-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
]'
>>> 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
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
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
@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;
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
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
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
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
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
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,
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
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
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
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?
19 matches
Mail list logo