summaryrefslogtreecommitdiff
path: root/Python/dynload_dl.c
AgeCommit message (Collapse)AuthorLines
2015-05-23Issue #24268: Fix import naming when loading extension modules. Patch by ↵Steve Dower-1/+1
Petr Viktorin.
2015-05-23PEP 489: Multi-phase extension module initializationNick Coghlan-3/+4
Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
2012-05-04Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.Brett Cannon-4/+1
This introduces a new function, imp.extension_suffixes(), which is currently undocumented. That is forthcoming once issue #14657 is resolved and how to expose file suffixes is decided.
2012-02-20Issue #14040: Remove rarely used file name suffixes for C extensions (under ↵Antoine Pitrou-1/+0
POSIX mainly). This will improve import performance a bit (especially under importlib).
2011-02-23dynload_dl.c: replace tabs by spacesVictor Stinner-7/+7
2011-02-22Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc()Victor Stinner-1/+1
The first argument, fqname, was not used.
2008-06-11Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis-1/+1
2001-11-28Use PyOS_snprintf instead of sprintf.Jeremy Hylton-1/+1
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-07-22ANSIfy as many declarations as possible.Thomas Wouters-1/+1
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
1999-12-22Cleanup patches from Greg Stein:Guido van Rossum-1/+4
* in import.c, #ifdef out references to dynamic loading based on HAVE_DYNAMIC_LOADING * clean out the platform-specific crud from importdl.c. [ maybe fold this function into import.c and drop the importdl.c file? Greg.] * change GetDynLoadFunc's "funcname" parameter to "shortname". change "name" to "fqname" for clarification. * each GetDynLoadFunc now creates its own funcname value. WARNING: as I mentioned previously, we may run into an issue with a missing "_" on some platforms. Testing will show this pretty quickly, however. * move pathname munging into dynload_shlib.c
1999-12-20The old platform-specific contents of importdl.c, broken down into oneGuido van Rossum-0/+53
file per platform (really: per style of Dl API; e.g. all platforms using dlopen() are grouped together in dynload_shlib.c.). This is part of a set of patches by Greg Stein.