[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 23:42:28 CEST 2009
On Apr 24, 2009, at 2:08 PM, Lisandro Dalcin wrote:
> On Fri, Apr 24, 2009 at 4:20 PM, Robert Bradshaw
> <robertwb at math.washington.edu> wrote:
>> 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():
>> ...
>
> I like this, but not strongly... I would be fine with anything...
>
> I would not bother too much, perhaps I would be the only one using
> this ;-)
It's worth it, it's ugly sticking things in Options.py anyways.
- Robert
More information about the Cython-dev
mailing list