]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change getbuiltin interface to get the name as an object;
authorGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 08:54:58 +0000 (08:54 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 16 Aug 1991 08:54:58 +0000 (08:54 +0000)
call dict2lookup insteead of dictlookup.

Python/bltinmodule.c

index 128d37ece2783555beb1cc300087984f6cec5d55..01cd5fac33961a766d8ec3f4ab3ebc798b4640a5 100644 (file)
@@ -521,9 +521,9 @@ static object *builtin_dict;
 
 object *
 getbuiltin(name)
-       char *name;
+       object *name;
 {
-       return dictlookup(builtin_dict, name);
+       return dict2lookup(builtin_dict, name);
 }
 
 /* Predefined exceptions */