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