PyDocs

Nav

Generic Operating System Services

libc_ver

platform

function (source)
  • libc_ver(executable=sys.executable, lib='', version='', chunksize=16384)
Tries to determine the libc version that the file executable
(which defaults to the Python interpreter) is linked against.

Returns a tuple of strings (lib,version) which default to the
given parameters in case the lookup fails.

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

The file is read and scanned in chunks of chunksize bytes.
0 Examples
No examples for platform/libc_ver.
See Also
No see-alsos for platform/libc_ver
0 Notes
No notes for libc_ver