diff Python/bltinmodule.c @ 332:be3052a77b7f legacy-trunk

Change getbuiltin interface to get the name as an object; call dict2lookup insteead of dictlookup.
author Guido van Rossum <guido@python.org>
date Fri, 16 Aug 1991 08:54:58 +0000
parents c28fabe21165
children 039aee6cbd78
line wrap: on
line diff
--- a/Python/bltinmodule.c	Thu Aug 08 12:34:44 1991 +0000
+++ b/Python/bltinmodule.c	Fri Aug 16 08:54:58 1991 +0000
@@ -521,9 +521,9 @@
 
 object *
 getbuiltin(name)
-	char *name;
+	object *name;
 {
-	return dictlookup(builtin_dict, name);
+	return dict2lookup(builtin_dict, name);
 }
 
 /* Predefined exceptions */