Robert Bradshaw wrote:
> On Mar 11, 2008, at 3:54 AM, Stefan Behnel wrote:
>> Robert Bradshaw wrote:
>>> As for the decorator notation, in one case
>>> it would be passed a function object, and in another it would be passed
>>> a parse tree.
>>
>> "case" meaning: a) when running in the Python interpreter and b) when
>> running
>> inside Cython?
> 
> Yes, this is what I mean.

Hmmm, ok, but we already agreed that they'd use different code bases, mainly a
fake implementation for the Python runtime case (at least for types). And I
actually don't see much use for the functionality provided by Cython plugins
inside the Python interpreter.

Most decorator plugins would likely be replaced by

    def my_decorator(*args, **kwargs):
         def dummy(func):
              return func
         return dummy

in their Python implementation, just to make decorated Cython code work under
Python.

Anyway, maybe there really are things that Cython plugins may provide one day,
that similarly apply to Python code. I don't know...

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to