(bits, linkage)
which contain information about the bit
architecture and the linkage format used for the executable. Both values are
returned as strings.
''
, the :cfunc:`sizeof(pointer)` (or
:cfunc:`sizeof(long)` on Python version < 1.5.2) is used as indicator for the
supported pointer size.
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.
'amdk6'
.
(buildno, builddate)
stating the Python build number and
date as strings.
'major.minor.patchlevel'
sys.version
, the returned value will always
include the patchlevel (it defaults to 0).
(major, minor, patchlevel)
of strings.
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)
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.
''
.
(release, vendor, vminfo, osinfo)
with vminfo being a
tuple (vm_name, vm_release, vm_vendor)
and osinfo being a tuple
(os_name, os_version, os_arch)
. Values which cannot be determined are set to
the defaults given as parameters (which all default to ''
).
(version, csd, ptype)
referring to version number, CSD level and OS type
(multi/single processor).
'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 *'Checked'*
which means the OS version uses debugging code, i.e. code that checks arguments,
ranges, etc.
with *versioninfo* being a tuple
(version, dev_stage,
non_release_version)``.
''
. All tuple entries are
strings.
gestalt
API is available online at
http://www.rgaros.nl/gestalt/.
supported_dists
may be given to define the set of Linux distributions to
look for. It defaults to a list of currently supported Linux distributions
identified by their release file name.
full_distribution_name
is true (default), the full distribution read
from the OS is returned. Otherwise the short name taken from
supported_dists
is used.
(distname,version,id)
which defaults to the args given as
parameters. id
is the item in parentheses after the version number. It
is usually the version codename.
gcc
.