class Platform: (source)
Gives us information about the platform we're running on.
Instance Variable | type |
Undocumented |
Instance Variable | seconds |
Undocumented |
Method | __init__ |
Undocumented |
Method | isKnown |
Do we know about this platform? |
Method | getType |
Get platform type. |
Method | isMacOSX |
Check if current platform is macOS. |
Method | isWinNT |
Are we running in Windows NT? |
Method | isWindows |
Are we running in Windows? |
Method | isVista |
Check if current platform is Windows Vista or Windows Server 2008. |
Method | isLinux |
Check if current platform is Linux. |
Method | isDocker |
Check if the current platform is Linux in a Docker container. |
Method | supportsThreads |
Can threads be created? |
Method | supportsINotify |
Return True if we can use the inotify API on this platform. |
Instance Variable | _platform |
Undocumented |
Method | _supportsSymlinks |
Check for symlink support usable for Twisted's purposes. |
Do we know about this platform?
Returns | Boolean indicating whether this is a known platform or not. (type: bool ) |
Check if current platform is macOS.
Returns | True if the current platform has been detected as macOS. (type: bool ) |
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 | True if the current platform has been detected as Windows NT. (type: bool ) |
Are we running in Windows?
Returns | True if the current platform has been detected as Windows. (type: bool ) |
Check if current platform is Windows Vista or Windows Server 2008.
Returns | True if the current platform has been detected as Vista (type: bool ) |
Check if current platform is Linux.
Returns | True if the current platform has been detected as Linux. (type: bool ) |
Check for symlink support usable for Twisted's purposes.
Returns | True if symlinks are supported on the current platform, otherwise False . (type: bool ) |
Can threads be created?
Returns | True if the threads are supported on the current platform. (type: bool ) |