14.12.5 Unix Platforms

Python 2.5

14.12.5 Unix Platforms

Tries to determine the name of the OS distribution name Returns a tuple (distname, version, id) which defaults to the args given as parameters.

Tries to determine the libc version against which the file executable (defaults to the Python interpreter) is linked. Returns a tuple of strings (lib, version) which default to the given parameters in case the lookup fails.

Note that this function has intimate knowledge of how different libc versions add symbols to the executable is probably only useable for executables compiled using gcc.

The file is read and scanned in chunks of chunksize bytes.

See About this document... for information on suggesting changes.