semi colonic
Hen Hanna
henhanna at gmail.com
Wed Feb 22 21:25:00 EST 2023
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... at 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 like, perhaps,
> >
> > import os; print(os.path.exists(filename))
> >
> > This way I can get rid of the debugging statement by deleting that
> > single line. This is non only quicker but I'm less likely to delete
> > too much by mistake.
> >
> I do exactly the same.
> Rob Cliffe
i sometimes put extra commas... as:
[ 1, 2, 3, 4, ]
so it is (or may be) easier to add things later.
----------- i can think of putting extra final ; for the same reason.
More information about the Python-list
mailing list