executable=sys.executable, bits='', linkage='') |
Returns a tuple (bits, linkage)
which contain information about
the bit architecture and the linkage format used for the
executable. Both values are returned as strings.
Values that cannot be determined are returned as given by the
parameter presets. If bits is given as ''
, the
sizeof(pointer)
(or sizeof(long) on Python version < 1.5.2) is used as
indicator for the supported pointer size.
The function relies on the system's file command to do the actual work. This is available on most if not all Unix platforms and some non-Unix platforms and then only if the executable points to the Python interpreter. Reasonable defaults are used when the above needs are not met.
) |
'i386'
.
An empty string is returned if the value cannot be determined.
) |
aliased=0, terse=0) |
The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended.
If aliased is true, the function will use aliases for various platforms that report system names which differ from their common names, for example SunOS will be reported as Solaris. The system_alias() function is used to implement this.
Setting terse to true causes the function to return only the absolute minimum information needed to identify the platform.
) |
'amdk6'
.
An empty string is returned if the value cannot be determined. Note that many platforms do not provide this information or simply return the same value as for machine(). NetBSD does this.
) |
(buildno, builddate)
stating the
Python build number and date as strings.
) |
) |
'major.minor.patchlevel'
Note that unlike the Python sys.version
, the returned value
will always include the patchlevel (it defaults to 0).
) |
(major, minor,
patchlevel)
of strings.
Note that unlike the Python sys.version
, the returned value
will always include the patchlevel (it defaults to '0'
).
) |
'2.2.0'
or 'NT'
An empty string is returned if the value cannot be determined.
) |
'Linux'
, 'Windows'
,
or 'Java'
.
An empty string is returned if the value cannot be determined.
system, release, version) |
(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.
) |
'#3 on degas'
.
An empty string is returned if the value cannot be determined.
) |
(system, node, release, version,
machine, processor)
identifying the underlying
platform.
Note that unlike the os.uname() function this also returns possible processor information as additional tuple entry.
Entries which cannot be determined are set to ''
.
See About this document... for information on suggesting changes.