summaryrefslogtreecommitdiffstats
path: root/Modules/config.c.in
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-04-12 23:44:07 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-04-12 23:44:07 (GMT)
commite9746890388178bb1e4cdad3c0586bf1862c3727 (patch)
tree77e228e19ac5673aac13dac8292281fc9a3010ab /Modules/config.c.in
parente6c03033afc58804cfdb143bef67e9cd37e25507 (diff)
downloadcpython-e9746890388178bb1e4cdad3c0586bf1862c3727.zip
cpython-e9746890388178bb1e4cdad3c0586bf1862c3727.tar.gz
cpython-e9746890388178bb1e4cdad3c0586bf1862c3727.tar.bz2
Re-implement the 'warnings' module in C. This allows for usage of the
'warnings' code in places where it was previously not possible (e.g., the parser). It could also potentially lead to a speed-up in interpreter start-up if the C version of the code (_warnings) is imported over the use of the Python version in key places. Closes issue #1631171.
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index f811991..399cb1e 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -28,6 +28,7 @@ extern void PyMarshal_Init(void);
extern void initimp(void);
extern void initgc(void);
extern void init_ast(void);
+extern void _PyWarnings_Init(void);
struct _inittab _PyImport_Inittab[] = {
@@ -51,6 +52,9 @@ struct _inittab _PyImport_Inittab[] = {
/* This lives in gcmodule.c */
{"gc", initgc},
+ /* This lives in _warnings.c */
+ {"_warnings", _PyWarnings_Init},
+
/* Sentinel */
{0, 0}
};