Skip to Content
Python: Essential Reference, Third Edition
book

Python: Essential Reference, Third Edition

by David Beazley
February 2006
Intermediate to advanced content levelIntermediate to advanced
648 pages
14h 53m
English
Sams
Content preview from Python: Essential Reference, Third Edition

dl

The dl module provides access to the dynamic loader on UNIX platforms. There is rarely any need to use this module directly. However, the contents of this module may be of some use for programmers who work with C/C++ extensions to Python.

open(name [, mode])

Opens a shared object file, name, and returns a handle object. mode is the bitwise OR of flags that control how symbols are solved in the loaded library. Here are the common flag values:

Flag ValueDescription
RTLD_GLOBALExternal symbols in the loaded library added to the global namespace and used to resolve symbols in subsequently loaded libraries.
RTLD_LAZYUse late-binding of symbols.
RTLD_LOCALSymbols in the loaded library are private.
RTLD_NODELETEDo not remove the library from memory after ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python: Essential Reference

Python: Essential Reference

David M. Beazley

Publisher Resources

ISBN: 0672328623Purchase book