class Platform: (source)
Method | __init__ |
Undocumented |
Method | getType |
Get platform type. |
Method | isDocker |
Check if the current platform is Linux in a Docker container. |
Method | isKnown |
Do we know about this platform? |
Method | isLinux |
Check if current platform is Linux. |
Method | isMacOSX |
Check if current platform is macOS. |
Method | isVista |
Check if current platform is Windows Vista or Windows Server 2008. |
Method | isWindows |
Are we running in Windows? |
Method | isWinNT |
Are we running in Windows NT? |
Method | supportsINotify |
Return True if we can use the inotify API on this platform. |
Method | supportsThreads |
Can threads be created? |
Class Variable | seconds |
Undocumented |
Instance Variable | type |
Undocumented |
Method | _supportsSymlinks |
Check for symlink support usable for Twisted's purposes. |
Instance Variable | _platform |
Undocumented |
Returns | |
bool | Boolean indicating whether this is a known platform or not. |
Returns | |
bool | True if the current platform has been detected as Linux. |
Returns | |
bool | True if the current platform has been detected as macOS. |
Returns | |
bool | True if the current platform has been detected as Vista |
Are we running in Windows NT?
This is deprecated and always returns True on win32 because Twisted only supports Windows NT-derived platforms at this point.
Returns | |
bool | True if the current platform has been detected as Windows NT. |
Returns | |
bool | True if symlinks are supported on the current platform, otherwise False. |