sys.exit() method is used to exit the python interpreter
I have been going through the Django source code in file *django/utils/autoreload.py*def reloader_thread(): ensure_echo_on() while RUN_RELOADER: if code_changed(): *sys.exit(3) # force reload* time.sleep(1) *when code is changed that line executed, should not it stop executing but it keep on listening if code is changed or not.what happens behind the scene, when sys.exit(3) is executed. * -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/73ead7a3-6c42-4a63-95cf-199c0b00e1fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.