From 8f49e12a0e0805ec61690263ef1ef15340293980 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 6 Jan 1997 22:55:54 +0000 Subject: Make builtin_module_names a tuple instead of a list. --- Python/sysmodule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index d32562e..568f45a 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -232,6 +232,11 @@ list_builtin_module_names() DECREF(list); list = NULL; } + if (list) { + object *v = listtuple(list); + DECREF(list); + list = v; + } return list; } -- cgit v0.12