On this page
sys.setdlopenflags
Prev: sys.set_int_max_str_digits | Up: sys
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.setdlopenflags
Tags: #public #python3 #stdlib #sys
Import
import sys
from sys import setdlopenflags
Signature & Overview
sys.setdlopenflags(flags, /)
Set the flags used by the interpreter for dlopen calls.
Usage
import sys
if hasattr(sys, "getdlopenflags"):
orig = sys.getdlopenflags()
sys.setdlopenflags(orig)
Gotchas
- Unix-only: Always restore the original flags after importing the extension module that needed
RTLD_GLOBAL.
REPL Inspect
from sys import setdlopenflags
help(setdlopenflags)
Linked from
Related notes
- tuts/python3/stdlib_module/sys/set_int_max_str_digits Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sys/activate_stack_trampoline Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/addaudithook Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/audit Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/breakpointhook Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/call_tracing shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/deactivate_stack_trampoline shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/displayhook shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/exc_info shared tags: #stdlib, #sys