[Pyrex] getattr

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 9 12:31:34 CEST 2007


Stefan Behnel wrote:
> It would actually be cool if Pyrex/Cython could distinguish
> between getattr/getattr3 based on the number of arguments getattr() is called
> with (i.e. no new function name as an additional builtin).

It would, but that would require some changes to the
infrastructure. The current builtins optimisation in
0.9.6 is implemented in a very simple way -- it just
adds a bunch of predefined C functions to the builtin
scope, as though you'd written declarations from them.

--
Greg



More information about the Pyrex mailing list