[Python-Dev] Re: import w/options

Jeff Epler jepler at unpythonic.net
Tue Oct 19 04:40:38 CEST 2004

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)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20041018/23003b81/attachment-0001.pgp

More information about the Python-Dev mailing list