Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a57fb01

Browse files
committed
Change getbuiltin interface to get the name as an object;
call dict2lookup insteead of dictlookup.
1 parent abe5835 commit a57fb01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/bltinmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,9 @@ static object *builtin_dict;
521521

522522
object *
523523
getbuiltin(name)
524-
char *name;
524+
object *name;
525525
{
526-
return dictlookup(builtin_dict, name);
526+
return dict2lookup(builtin_dict, name);
527527
}
528528

529529
/* Predefined exceptions */

0 commit comments

Comments
 (0)