Python Forum
Beginner help: loops, if, else
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beginner help: loops, if, else
#4
you don't need line 33
I can't understand why it doesn't quit. are you typing ctrl-c?

if you try the script I posted verbatim, you will see that it works.
the only other explanation that I can think of is that one of the modules you're using is servicing interrupts before the sig_capture.
also, if you are not running this from command line, then line 28 will never get executed and must be moved.
Reply


Messages In This Thread
Beginner help: loops, if, else - by Banyanss - Jul-22-2018, 08:06 AM
RE: Beginner help: loops, if, else - by Larz60+ - Jul-22-2018, 01:21 PM
RE: Beginner help: loops, if, else - by Banyanss - Jul-22-2018, 02:13 PM
RE: Beginner help: loops, if, else - by Larz60+ - Jul-22-2018, 08:53 PM
RE: Beginner help: loops, if, else - by Banyanss - Jul-24-2018, 06:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python beginner - nested while loops mikebarden 1 1,915 Jun-01-2020, 01:04 PM
Last Post: DPaul

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020