Python os.EX_NOHOST Constant
Example
Exit code if specified host did not exist:
#Import os Library
import os
# Exit code
os._exit(os.EX_NOHOST)
Try it Yourself »
Definition and Usage
The os.EX_NOHOST
exit code representing a specified host did not exist.
This is used in mail addresses or network requests.
Note: Available only on UNIX platforms.
Syntax
os.EX_NOHOST
Technical Details
Return Value: | None |
---|---|
Python Version: | 2.3 |