![]() Note that this adds a sixth attribute ( processor) not present Returns a namedtuple()Ĭontaining six attributes: system, node, release, ![]() uname ( ) ¶įairly portable uname interface. Returned if the value cannot be determined. Returns the system’s release version, e.g. Where it would otherwise cause confusion. It also does some reordering of the information in some cases Returns (system, release, version) aliased to common marketing names usedįor some systems. system_alias ( system, release, version ) ¶ An empty string is returned if the value cannot be determined. Returns the system/OS name, such as 'Linux', 'Darwin', 'Java', Include the patchlevel (it defaults to '0'). Returns the Python version as tuple (major, minor, patchlevel) of strings. Include the patchlevel (it defaults to 0). Note that unlike the Python sys.version, the returned value will always Returns a string identifying the Python implementation SCM revision. Possible return valuesĪre: ‘CPython’, ‘IronPython’, ‘Jython’, ‘PyPy’. Returns a string identifying the Python implementation. Returns a string identifying the Python implementation SCM branch. Returns a string identifying the compiler used for compiling Python. Returns a tuple (buildno, builddate) stating the Python build number andĭate as strings. Platforms do not provide this information or simply return the same value as for 'amdk6'.Īn empty string is returned if the value cannot be determined. Non-empty release string, to get the macOS version rather than the darwin Changed in version 3.8: On macOS, the function now uses mac_ver(), if it returns a
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |