Post Reply 
Key for stopping Python program (endless loop)
04-20-2021, 08:15 PM
Post: #1
Key for stopping Python program (endless loop)
Hi all,

I tested a very simple Python program, with input() and print() in a while 1==1 endless loop. Does any of you know with which key (or combinations) the program can be stopped and returns to the program editor.
Okay, I have now done it with a paperclip reset, pfff

— Dirk Hartland
Find all posts by this user
Quote this message in a reply
04-21-2021, 07:39 AM (This post was last modified: 04-21-2021 07:40 AM by cyrille de brébisson.)
Post: #2
RE: Key for stopping Python program (endless loop)
Hello,

ON+Symb will also do a reset of the calc..
Then if you go back to num, make sure that you do not let the program run by cancelling the "import and run" message box!

I will see if I can implement an "ON" detection that will raise a kbd exception

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
04-21-2021, 08:16 AM
Post: #3
RE: Key for stopping Python program (endless loop)
Hi Cyrille,

Thanks for your quick reply.
ON+SYMB gave a reset, after the reset my “stupid” program was immediately restarted.
An ON+another key would be perfect to terminate a program.

— Dirk Hartland
Find all posts by this user
Quote this message in a reply
04-22-2021, 05:45 AM
Post: #4
RE: Key for stopping Python program (endless loop)
Hello,

Press and hold backspace at boot time should avoid the program re-running at reboot.

For the next version, I have added an ON key detection system...

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
04-22-2021, 06:55 AM
Post: #5
RE: Key for stopping Python program (endless loop)
Cyrille, Thanks !!

— Dirk Hartland
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)