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 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. -- https://mail.python.org/mailman/listinfo/python-list