Does Python (or psyco) already do this optimisation?

Martin v. Loewis martin at v.loewis.de
Thu Nov 21 03:02:38 EST 2002


"Mike C. Fletcher" <mcfletch at rogers.com> writes:

> Anyway, would be interested to know if someone C-knowledgable has done
> this already and 1) integrated it into Python or psyco already, or 2)
> decided it just isn't a feasible approach?

Local namespaces are accessed by integer index only, global namespaces
are accessed by dictionary only; object attribute lookup uses complex
procedures.

Regards,
Martin



More information about the Python-list mailing list