Robert Bradshaw wrote: > On Fri, Oct 15, 2010 at 11:11 PM, Lisandro Dalcin <[email protected]> wrote: > >> Currently, Cython creates a class with empty namespace, next >> populates the class with setattr > > I have actually always wondered why we did it this way, but have never > looked into changing it myself.
Pyrex did it that way because it was necessary to wrap the methods in unbound method objects before putting them in the class, and the class had to exist before UBMs could be created. There was some talk once about giving C-implemented functions method-binding behaviour, which would make the UBMs uneccessary, but I don't know whether it's been done. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
