sys.exit()
raises the SystemExit
exception, as does thread.exit()
. So, when sys.exit()
raises that exception inside that thread, it has the same effect as calling thread.exit()
, which is why only the thread exits.
More Related Contents:
- How function is getting called without defining in python [closed]
- Visibility of global variables in imported modules
- Python try…except comma vs ‘as’ in except
- Alternative to dict comprehension prior to Python 2.7
- Get class that defined method
- bash: pip: command not found
- Pipe subprocess standard output to a variable [duplicate]
- How do I get Python’s ElementTree to pretty print to an XML file?
- Python readlines() usage and efficient practice for reading
- Suppress InsecureRequestWarning: Unverified HTTPS request is being made in Python2.6
- Get all object attributes in Python? [duplicate]
- Any gotchas using unicode_literals in Python 2.6?
- sort dict by value python [duplicate]
- Remove whitespaces in XML string
- How to run multiple commands synchronously from one subprocess.Popen command?
- Extract time from datetime and determine if time (not date) falls within range?
- pyodbc insert into sql
- How to convert a set to a list in python?
- python histogram one-liner [duplicate]
- Simple example of how to use ast.NodeVisitor?
- Python 2.6 JSON decoding performance
- Discord Py on_message bot=False blocked?
- error when applying function to a series object
- Prepend line to beginning of a file
- How do I pass extra arguments to a Python decorator?
- RGB Int to RGB – Python
- Setting property causes maximum recursion depth exceeded
- Efficient way to take the minimum/maximum n values and indices from a matrix using NumPy
- django best approach for creating multiple type users
- How to re-raise an exception in nested try/except blocks?