Python os.NO_USER Constant
Example
Exit code if specified user did not exist:
#Import os Library
import os
# Exit code
os._exit(os.EX_NOUSER)
Try it Yourself »
Definition and Usage
The os.EX_NOUSER
exit code represents that a specified user did not exist.
It may be used for mail addresses or remote logins.
Note: Available only on UNIX platforms.
Syntax
os.EX_NOUSER
Technical Details
Return Value: | None |
---|---|
Python Version: | 2.3 |