semi colonic
Rob Cliffe
rob.cliffe at btinternet.com
Wed Feb 22 21:20:28 EST 2023
On 23/02/2023 02:04, Thomas Passin wrote:
> On 2/22/2023 7:58 PM, avi.e.gross 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
More information about the Python-list
mailing list