Changes to speed up local variables enormously, by avoiding dictionary

lookup (opcode.h, ceval.[ch], compile.c, frameobject.[ch],
pythonrun.c, import.c).  The .pyc MAGIC number is changed again.
Added get_menu_text to flmodule.
This commit is contained in:
Guido van Rossum 1993-03-30 13:18:41 +00:00
parent 0023078a0b
commit 8b17d6bd89
9 changed files with 245 additions and 71 deletions

View file

@ -1200,6 +1200,14 @@ get_menu (g, args)
return call_forms_Ri (fl_get_menu, g-> ob_generic, args);
}
static object *
get_menu_text (g, args)
genericobject *g;
object *args;
{
return call_forms_Rstr (fl_get_menu_text, g-> ob_generic, args);
}
static object *
addto_menu (g, args)
genericobject *g;
@ -1211,6 +1219,7 @@ addto_menu (g, args)
static struct methodlist menu_methods[] = {
{"set_menu", set_menu},
{"get_menu", get_menu},
{"get_menu_text", get_menu_text},
{"addto_menu", addto_menu},
{NULL, NULL} /* sentinel */
};