/* Inline the PyDict_GetItem() calls */ PyDictObject *d; d = (PyDictObject *)(f->f_globals); x = d->ma_lookup(d, w, hash)->me_value; if (x != NULL) { Py_INCREF(x); PUSH(x); continue; } How about a macro here? #define PyDict_STRING_LOOKUP(D, S, HASH) \ ((PyDictObject *)D)->ma_lookup((D), (S), (HASH))->me_value Jeremy