[Cython] asking for advice on patch ticket #295 (compiler directive to control METH_O and METH_NOARGS flags)

Robert Bradshaw robertwb at math.washington.edu
Fri Apr 24 21:20:33 CEST 2009


On Apr 24, 2009, at 8:33 AM, Lisandro Dalcin wrote:

> I have a patch almost ready... but
>
> 1) Now that we have a proper compiler directive, should I remove the
> global option in Options.py ??

Yes, once the directive is implemented.

> 2) Up to now, I'm named the directive "optimize_simple_methods" ...
> but it is a bit longish, any better name? If not, should I use
> "..._methods" in plural, or just "..._method" ?

Maybe

@cython.simple_calling(False)
def foo():
     ...

or optimized_call or simple_dispatch or ??

I'd like to hear some more suggestions though, the original name is  
pretty verbose to actually expose to users...

- Robert




More information about the Cython-dev mailing list