-----Original Message-----
From: Roel Schroeven <[email protected]>
Sent: Saturday, December 6, 2025 7:00 PM
To: [email protected]
Subject: Re: A switch somewhere, or bug? CORRECTION
Op 6/12/2025 om 20:51 schreef Em:
>> The confusing part here is that no one has indicated whether or not
>> the statement fails in any of the six ways to run this program except me.
>> Am I the only one that has the problem?
>Sometimes it happens to me too that a script doesn't work, for whatever
>reason.
This is not a matter of "sometimes". This it totally predictable and it
happens for me every time depending how I run it.
I have narrowed it down to an extremely simple program:
Pause = input(" Start ")
Starter = open("HLY-LOG5.txt","w")
pause - input(" End ")
Out of the seven scenarios:
Four options work if you use:
WIN10 and double click on the filename.
WIN10 and open the file with IDLE and press F5.
WIN11 and open the file with IDLE and press F5.
WIN11 and activate it from the command prompt.
Three fail to work if you use:
WIN11 and double-click on the filename.
WIN11 and select "Open using Python".
WIN10 and select "Open using Python". (This one totally surprised me.)
>What I then do is launch the script in a way that maximizes my chances to
>discover >what's going wrong. E.g. I run the script from a command prompt.
>Have you done >that yet? Have you seen my other post (from 2025-12-05)? Have
>you tried my >suggestions? What where the results?
Although I am attempting to use the suggestions provided, they do little help
if I don't know the scope of the problem.
Is it happening only on my computers?
No one, so far, has posted either way.
--
https://mail.python.org/mailman3//lists/python-list.python.org
--
https://mail.python.org/mailman3//lists/python-list.python.org