class documentation

class WindowsVersion(_enum.Enum):

View In Hierarchy

The Windows version.

It is determined from the KernelVersion. Since they share the same kernel version, Windows Server versions are detected as their desktop counterparts.

Additionally, since Windows 10 and Windows 11 share the same kernel version, they are distinguished with an heuristics on the build number (which is exposed by KernelVersion.patch on Windows OSes.

  • Windows7: Windows 7
  • Windows8: Windows 8
  • Windows8_1: Windows 8.1
  • Windows10: Windows 10
  • Windows11: Windows 11
Method __str__ Returns the nicely printable string representation of this instance.
Class Variable Windows10 Undocumented
Class Variable Windows11 Undocumented
Class Variable Windows7 Undocumented
Class Variable Windows8 Undocumented
Class Variable Windows8_1 Undocumented
def __str__(self):

Returns the nicely printable string representation of this instance.

Returns
strUndocumented
Windows10 =

Undocumented

Windows11 =

Undocumented

Windows7 =

Undocumented

Windows8 =

Undocumented

Windows8_1 =

Undocumented