0
0
mirror of https://github.com/python/cpython.git synced 2024-11-27 23:47:29 +01:00
cpython/Modules
Nick Coghlan d5cacbb1d9 PEP 489: Multi-phase extension module initialization
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.
2015-05-23 22:24:10 +10:00
..
_ctypes
_decimal
_io Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht. 2015-05-20 21:50:59 +02:00
_multiprocessing
_sqlite Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:13:20 +03:00
cjkcodecs
clinic
expat
zlib
_bisectmodule.c
_bz2module.c
_codecsmodule.c
_collectionsmodule.c
_cryptmodule.c
_csv.c
_curses_panel.c
_cursesmodule.c
_datetimemodule.c
_dbmmodule.c
_elementtree.c Issue #24091: Fixed various crashes in corner cases in C implementation of 2015-05-18 18:33:31 +03:00
_functoolsmodule.c
_gdbmmodule.c
_hashopenssl.c
_heapqmodule.c Issue #24221: Small optimizations for heapq. 2015-05-22 00:41:57 -07:00
_json.c
_localemodule.c
_lsprof.c
_lzmamodule.c
_math.c
_math.h
_opcode.c
_operator.c Issue #22955: Fixed reference leak in attrgetter.repr(). 2015-05-21 14:19:20 +03:00
_pickle.c
_posixsubprocess.c
_randommodule.c
_scproxy.c
_sre.c
_ssl_data.h
_ssl.c
_stat.c
_struct.c
_testbuffer.c
_testcapimodule.c PEP 489: Multi-phase extension module initialization 2015-05-23 22:24:10 +10:00
_testimportmultiple.c
_testmultiphase.c PEP 489: Multi-phase extension module initialization 2015-05-23 22:24:10 +10:00
_threadmodule.c
_tkinter.c Issue #20035: Reimplement tkinter._fix module as a C function. 2015-05-22 11:36:53 -05:00
_tracemalloc.c
_weakref.c
_winapi.c
addrinfo.h
ar_beos
arraymodule.c PEP 489: Multi-phase extension module initialization 2015-05-23 22:24:10 +10:00
atexitmodule.c
audioop.c
binascii.c
cmathmodule.c
config.c.in PEP 489: Multi-phase extension module initialization 2015-05-23 22:24:10 +10:00
errnomodule.c
faulthandler.c
fcntlmodule.c
fpectlmodule.c
fpetestmodule.c
gc_weakref.txt
gcmodule.c
getaddrinfo.c
getbuildinfo.c
getnameinfo.c
getpath.c
grpmodule.c
hashlib.h
hashtable.c
hashtable.h
itertoolsmodule.c
ld_so_aix.in
ld_so_beos
main.c
makesetup
makexp_aix
mathmodule.c
md5module.c
mmapmodule.c
nismodule.c
ossaudiodev.c
overlapped.c
parsermodule.c
posixmodule.c
posixmodule.h
pwdmodule.c
pyexpat.c
readline.c
README
resource.c
rotatingtree.c
rotatingtree.h
selectmodule.c
Setup.config.in
Setup.dist
sha1module.c
sha256module.c
sha512module.c
signalmodule.c
socketmodule.c
socketmodule.h
spwdmodule.c
sre_constants.h
sre_lib.h
sre.h
symtablemodule.c
syslogmodule.c
termios.c
testcapi_long.h
timemodule.c Issue 24244: Prevents termination when an invalid format string is encountered on Windows. 2015-05-22 15:08:34 -07:00
tkappinit.c
tkinter.h
unicodedata_db.h
unicodedata.c
unicodename_db.h
winreparse.h
xxlimited.c PEP 489: Multi-phase extension module initialization 2015-05-23 22:24:10 +10:00
xxmodule.c PEP 489: Multi-phase extension module initialization 2015-05-23 22:24:10 +10:00
xxsubtype.c PEP 489: Multi-phase extension module initialization 2015-05-23 22:24:10 +10:00
zipimport.c
zlibmodule.c

Source files for standard library extension modules,
and former extension modules that are now builtin modules.