
Oct. 19, 2004
2:40 a.m.
It works here: (python 2.3.3 on fedora core 2) $ ltrace -s 74 -e dlopen \ python -c 'import sys,dl; sys.setdlopenflags(dl.RTLD_LAZY); import _tkinter' dlopen("/usr/lib/python2.3/lib-dynload/dlmodule.so", 2) = 0x9ea7cf0 dlopen("/usr/lib/python2.3/lib-dynload/_tkinter.so", 1) = 0x9ea9c88 It's possible that some implementation of shared library loading don't obey sys.setdlopenflags(). In particular, it looks like dlopenflags will only be changed from 0 in dynload_shlib.c when PYCC_GCC is set. (line 111 in my recentish CVS version of that file) Jeff