]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Efi/config.c
EADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Python Beta Release.
[mirror_edk2.git] / AppPkg / Applications / Python / Efi / config.c
index 4d7ae06c018566507b432d289dc532dcfad8615d..2fd6019abd73e11c8dc5a717076c7b4f74277436 100644 (file)
@@ -75,43 +75,31 @@ extern void initselect(void);
 \r
 extern void PyMarshal_Init(void);\r
 extern void initimp(void);\r
+extern void initunicodedata(void);\r
+extern void init_ctypes(void);\r
 \r
 struct _inittab _PyImport_Inittab[] = {\r
 \r
     //{"_ast", init_ast},\r
-    //{"_bisect", init_bisect},\r
-    //{"_codecs", init_codecs},\r
-    //{"_collections", init_collections},\r
-    //{"_functools", init_functools},\r
-    //{"_heapq", init_heapq},\r
+    //{"_bisect", init_bisect},                   /* A fast version of bisect.py */\r
+    //{"_heapq", init_heapq},                     /* A fast version of heapq.py */\r
     //{"_io", init_io},\r
     //{"_json", init_json},\r
     //{"_md5", init_md5},\r
-    //{"_random", init_random},\r
     //{"_sha", init_sha},\r
     //{"_sha256", init_sha256},\r
     //{"_sha512", init_sha512},\r
     //{"_socket", init_socket},\r
-    //{"_sre", init_sre},\r
-    //{"_struct", init_struct},\r
-    //{"_weakref", init_weakref},\r
 \r
     //{"array", initarray},\r
-    //{"binascii", initbinascii},\r
     //{"cmath", initcmath},\r
     //{"cPickle", initcPickle},\r
-    //{"cStringIO", initcStringIO},\r
     //{"datetime", initdatetime},\r
     //{"future_builtins", initfuture_builtins},\r
-    //{"gc", initgc},\r
-    //{"itertools", inititertools},\r
-    //{"math", initmath},\r
-    //{"operator", initoperator},\r
     //{"parser", initparser},\r
     //{"select", initselect},\r
     //{"signal", initsignal},\r
-    //{"strop", initstrop},\r
-    //{"time", inittime},\r
+    //{"strop", initstrop},                       /* redefines some string operations that are 100-1000 times faster */\r
     //{"xxsubtype", initxxsubtype},\r
     //{"zipimport", initzipimport},\r
     //{"zlib", initzlib},\r
@@ -129,10 +117,24 @@ struct _inittab _PyImport_Inittab[] = {
     {"thread", initthread},\r
 #endif\r
 \r
-#if 0\r
-    {"_symtable", init_symtable},\r
-    {"_csv", init_csv},\r
-#endif\r
+    //{"_symtable", init_symtable},\r
+    //{"_csv", init_csv},\r
+\r
+    /* These modules are required for the full built-in help() facility provided by pydoc. */\r
+    {"_codecs", init_codecs},\r
+    {"_collections", init_collections},\r
+    {"_functools", init_functools},\r
+    {"_random", init_random},\r
+    {"_sre", init_sre},\r
+    {"_struct", init_struct},                   /* Required by the logging package. */\r
+    {"_weakref", init_weakref},\r
+    {"binascii", initbinascii},\r
+    {"cStringIO", initcStringIO},               /* Required by several modules, such as logging. */\r
+    {"gc", initgc},\r
+    {"itertools", inititertools},\r
+    {"math", initmath},\r
+    {"operator", initoperator},\r
+    {"time", inittime},\r
 \r
     /* These four modules should always be built in. */\r
     {"edk2", initedk2},\r