[docs] [issue27329] Document behavior when CDLL is called with None as an argument on POSIX systems
Jeffrey Esquivel Sibaja
report at bugs.python.org
Thu Jun 16 00:38:10 EDT 2016
New submission from Jeffrey Esquivel Sibaja:
On POSIX systems, when CDLL is called with None as an argument, it will call the system's dlopen() library function with NULL as it's filename parameter, causing the following behavior (as documented on dlopen's manpage):
"If filename is NULL, then the returned handle is for the main program. When given to dlsym(), this handle causes a search for a symbol in the main program, followed by all shared objects loaded at program startup, and then all shared objects loaded by dlopen() with the flag RTLD_GLOBAL."
But right now, this behavior is not explicitly documented anywhere which means users need to read ctypes' source code to find out if this would work.
assignee: docs at python
components: Documentation, ctypes
nosy: Jeffrey Esquivel Sibaja, docs at python
title: Document behavior when CDLL is called with None as an argument on POSIX systems
versions: Python 2.7, Python 3.5, Python 3.6
Python tracker <report at bugs.python.org>
More information about the docs