plistlib.dump()

plistlib.dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False) Write value to a plist file. Fp should be a writable, binary file object. The fmt argument specifies the format of the plist file and can be one of the following values: FMT_XML: XML formatted plist file FMT_BINARY: Binary formatted plist file When sort_keys is true (the default) the keys for dictionaries will be written to the plist in sorted order, otherwise they will be written in the iteration order of the dicti

plistlib.Data

class plistlib.Data(data) Return a “data” wrapper object around the bytes object data. This is used in functions converting from/to plists to represent the <data> type available in plists. It has one attribute, data, that can be used to retrieve the Python bytes object stored in it. Deprecated since version 3.4: Use a bytes object instead.

platform.win32_ver()

platform.win32_ver(release='', version='', csd='', ptype='') Get additional version information from the Windows Registry and return a tuple (release, version, csd, ptype) referring to OS release, version number, CSD level (service pack) and OS type (multi/single processor). As a hint: ptype is 'Uniprocessor Free' on single processor NT machines and 'Multiprocessor Free' on multi processor machines. The ‘Free’ refers to the OS version being free of debugging code. It could also state ‘Checke

platform.version()

platform.version() Returns the system’s release version, e.g. '#3 on degas'. An empty string is returned if the value cannot be determined.

platform.uname()

platform.uname() Fairly portable uname interface. Returns a namedtuple() containing six attributes: system, node, release, version, machine, and processor. Note that this adds a sixth attribute (processor) not present in the os.uname() result. Also, the attribute names are different for the first two attributes; os.uname() names them sysname and nodename. Entries which cannot be determined are set to ''. Changed in version 3.3: Result changed from a tuple to a namedtuple.

platform.system_alias()

platform.system_alias(system, release, version) Returns (system, release, version) aliased to common marketing names used for some systems. It also does some reordering of the information in some cases where it would otherwise cause confusion.

platform.system()

platform.system() Returns the system/OS name, e.g. 'Linux', 'Windows', or 'Java'. An empty string is returned if the value cannot be determined.

platform.release()

platform.release() Returns the system’s release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined.

platform.python_version_tuple()

platform.python_version_tuple() Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to '0').

platform.python_version()

platform.python_version() Returns the Python version as string 'major.minor.patchlevel'. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0).