Dag Sverre Seljebotn wrote: > 2. Have a look at Nodes.FuncDefNode.generate_function_definition and > insert a check for self.name == "__getbuffer__" (and somehow a check that > you are in a cdef class, not sure, well, at least > "self.scope.parent_scope" should be a cdef class scope, for scopes see > Symtab.py), and if it matches, then simply output the C code at the right > place (after the label that is jumped to for return statements).
Sorry, that should be self.local_scope, and I'm not entirely sure about the name of the enclosing scope (but something like owner_scope or parent_scope, see in Symtab.py). Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
