mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
7eaf8223a0
svn+ssh://pythondev@svn.python.org/python/branches/p3yk ................ r55985 | neal.norwitz | 2007-06-14 20:14:38 -0700 (Thu, 14 Jun 2007) | 2 lines All these tests have been flaky wrt reporting leaks. Disable them. ................ r56003 | neal.norwitz | 2007-06-15 19:41:09 -0700 (Fri, 15 Jun 2007) | 1 line Fix typo (certain). ................ r56004 | neal.norwitz | 2007-06-15 20:54:18 -0700 (Fri, 15 Jun 2007) | 4 lines Fix it so test_os no longer reports ref leaks by clearing all the caches the ABCMeta stores on the class. Apply this to all the ABC collections as well as the class of os.environ which inherits from an ABC collection. ................ r56013 | neal.norwitz | 2007-06-17 19:56:31 -0700 (Sun, 17 Jun 2007) | 4 lines This should make it a little easier when adding new collections which use ABCs. The new subclass won't need to be listed in regrtest. It will be even better when Guido adds weakrefs. :-) ................ r56014 | martin.v.loewis | 2007-06-17 20:15:51 -0700 (Sun, 17 Jun 2007) | 1 line Drop inline, as it's not support by VS 2003. ................ r56015 | martin.v.loewis | 2007-06-17 20:17:19 -0700 (Sun, 17 Jun 2007) | 1 line Expect long objects for DWORD values. ................ r56016 | martin.v.loewis | 2007-06-17 20:18:01 -0700 (Sun, 17 Jun 2007) | 1 line Drop modules that have been deleted. ................ r56017 | martin.v.loewis | 2007-06-17 20:18:55 -0700 (Sun, 17 Jun 2007) | 1 line Bump DLL version number to 30. ................ r56018 | neal.norwitz | 2007-06-17 20:55:43 -0700 (Sun, 17 Jun 2007) | 62 lines Merged revisions 55951-56013 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r55956 | thomas.heller | 2007-06-13 00:07:03 -0700 (Wed, 13 Jun 2007) | 2 lines Do not hardcode the buildbot's directory name. ........ r55957 | thomas.heller | 2007-06-13 00:07:41 -0700 (Wed, 13 Jun 2007) | 2 lines Notes about building tcl/tk for windows/AMD64. ........ r55958 | thomas.heller | 2007-06-13 00:54:57 -0700 (Wed, 13 Jun 2007) | 2 lines Build bzip2. ........ r55962 | walter.doerwald | 2007-06-13 09:57:12 -0700 (Wed, 13 Jun 2007) | 8 lines Add T_PYSSIZET in structmember.h: This can be used for Py_ssize_t members. Simplify the implementation of UnicodeError objects: start and end attributes are now stored directly as Py_ssize_t members, which simplifies various get and set functions. ........ r55975 | martin.v.loewis | 2007-06-14 13:46:25 -0700 (Thu, 14 Jun 2007) | 3 lines Patch #1734014: Use _I64_MAX instead of LLONG_MAX. Will backport to 2.5. ........ r55984 | neal.norwitz | 2007-06-14 20:11:41 -0700 (Thu, 14 Jun 2007) | 4 lines urllib2_localnet says it leaks probably due to threads. So ignore it. popen2 is also complaining probably for similar reasons. make install always reports failure, so don't mail in this case. ........ r56001 | andrew.kuchling | 2007-06-15 15:43:03 -0700 (Fri, 15 Jun 2007) | 1 line Add a word ........ r56005 | martin.v.loewis | 2007-06-16 03:08:43 -0700 (Sat, 16 Jun 2007) | 2 lines Mention Senthil Kumaran. ........ r56006 | georg.brandl | 2007-06-16 10:10:12 -0700 (Sat, 16 Jun 2007) | 2 lines Add missing \versionadded. ........ r56009 | neal.norwitz | 2007-06-17 11:48:32 -0700 (Sun, 17 Jun 2007) | 1 line SF #1738670, make example in doc work ........ r56011 | neal.norwitz | 2007-06-17 19:46:36 -0700 (Sun, 17 Jun 2007) | 1 line SF #1738754, remove extra backslash in string ........ r56012 | neal.norwitz | 2007-06-17 19:50:15 -0700 (Sun, 17 Jun 2007) | 1 line Revert last change for SF #1738754, there's no print in there. ........ ................
152 lines
4.0 KiB
C
152 lines
4.0 KiB
C
/* Module configuration */
|
|
|
|
/* This file contains the table of built-in modules.
|
|
See init_builtin() in import.c. */
|
|
|
|
#include "Python.h"
|
|
|
|
extern void initarray(void);
|
|
#ifndef MS_WINI64
|
|
extern void initaudioop(void);
|
|
#endif
|
|
extern void initbinascii(void);
|
|
extern void initcmath(void);
|
|
extern void initerrno(void);
|
|
extern void initgc(void);
|
|
extern void initmath(void);
|
|
extern void initnt(void);
|
|
extern void initoperator(void);
|
|
extern void initsignal(void);
|
|
extern void init_sha256(void);
|
|
extern void init_sha512(void);
|
|
extern void inittime(void);
|
|
extern void initthread(void);
|
|
extern void initcStringIO(void);
|
|
extern void initcPickle(void);
|
|
#ifdef WIN32
|
|
extern void initmsvcrt(void);
|
|
extern void init_locale(void);
|
|
#endif
|
|
extern void init_codecs(void);
|
|
extern void init_weakref(void);
|
|
extern void init_hotshot(void);
|
|
extern void initxxsubtype(void);
|
|
extern void initzipimport(void);
|
|
extern void init_random(void);
|
|
extern void inititertools(void);
|
|
extern void init_collections(void);
|
|
extern void init_heapq(void);
|
|
extern void init_bisect(void);
|
|
extern void init_symtable(void);
|
|
extern void initmmap(void);
|
|
extern void init_csv(void);
|
|
extern void init_sre(void);
|
|
extern void initparser(void);
|
|
extern void init_winreg(void);
|
|
extern void init_struct(void);
|
|
extern void initdatetime(void);
|
|
extern void init_functools(void);
|
|
extern void initzlib(void);
|
|
|
|
extern void init_multibytecodec(void);
|
|
extern void init_codecs_cn(void);
|
|
extern void init_codecs_hk(void);
|
|
extern void init_codecs_iso2022(void);
|
|
extern void init_codecs_jp(void);
|
|
extern void init_codecs_kr(void);
|
|
extern void init_codecs_tw(void);
|
|
extern void init_subprocess(void);
|
|
extern void init_lsprof(void);
|
|
extern void init_ast(void);
|
|
extern void init_types(void);
|
|
|
|
/* tools/freeze/makeconfig.py marker for additional "extern" */
|
|
/* -- ADDMODULE MARKER 1 -- */
|
|
|
|
extern void PyMarshal_Init(void);
|
|
extern void initimp(void);
|
|
|
|
struct _inittab _PyImport_Inittab[] = {
|
|
|
|
{"array", initarray},
|
|
{"_ast", init_ast},
|
|
#ifdef MS_WINDOWS
|
|
#ifndef MS_WINI64
|
|
{"audioop", initaudioop},
|
|
#endif
|
|
#endif
|
|
{"binascii", initbinascii},
|
|
{"cmath", initcmath},
|
|
{"errno", initerrno},
|
|
{"gc", initgc},
|
|
{"math", initmath},
|
|
{"nt", initnt}, /* Use the NT os functions, not posix */
|
|
{"operator", initoperator},
|
|
{"signal", initsignal},
|
|
{"_sha256", init_sha256},
|
|
{"_sha512", init_sha512},
|
|
{"time", inittime},
|
|
#ifdef WITH_THREAD
|
|
{"thread", initthread},
|
|
#endif
|
|
{"cStringIO", initcStringIO},
|
|
{"cPickle", initcPickle},
|
|
#ifdef WIN32
|
|
{"msvcrt", initmsvcrt},
|
|
{"_locale", init_locale},
|
|
#endif
|
|
/* XXX Should _subprocess go in a WIN32 block? not WIN64? */
|
|
{"_subprocess", init_subprocess},
|
|
|
|
{"_codecs", init_codecs},
|
|
{"_weakref", init_weakref},
|
|
{"_hotshot", init_hotshot},
|
|
{"_random", init_random},
|
|
{"_bisect", init_bisect},
|
|
{"_heapq", init_heapq},
|
|
{"_lsprof", init_lsprof},
|
|
{"itertools", inititertools},
|
|
{"_collections", init_collections},
|
|
{"_symtable", init_symtable},
|
|
{"mmap", initmmap},
|
|
{"_csv", init_csv},
|
|
{"_sre", init_sre},
|
|
{"parser", initparser},
|
|
{"_winreg", init_winreg},
|
|
{"_struct", init_struct},
|
|
{"datetime", initdatetime},
|
|
{"_functools", init_functools},
|
|
|
|
{"xxsubtype", initxxsubtype},
|
|
{"zipimport", initzipimport},
|
|
{"zlib", initzlib},
|
|
|
|
/* CJK codecs */
|
|
{"_multibytecodec", init_multibytecodec},
|
|
{"_codecs_cn", init_codecs_cn},
|
|
{"_codecs_hk", init_codecs_hk},
|
|
{"_codecs_iso2022", init_codecs_iso2022},
|
|
{"_codecs_jp", init_codecs_jp},
|
|
{"_codecs_kr", init_codecs_kr},
|
|
{"_codecs_tw", init_codecs_tw},
|
|
|
|
/* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
|
|
/* -- ADDMODULE MARKER 2 -- */
|
|
|
|
/* This module "lives in" with marshal.c */
|
|
{"marshal", PyMarshal_Init},
|
|
|
|
/* This lives it with import.c */
|
|
{"imp", initimp},
|
|
|
|
/* These entries are here for sys.builtin_module_names */
|
|
{"__main__", NULL},
|
|
{"__builtin__", NULL},
|
|
{"sys", NULL},
|
|
|
|
{"_types", init_types},
|
|
|
|
/* Sentinel */
|
|
{0, 0}
|
|
};
|