2010/11/3 Stefan Behnel <[email protected]>:
> Robert Bradshaw, 03.11.2010 18:13:
>> On Wed, Nov 3, 2010 at 10:00 AM, Robert Bradshaw wrote:
>>> On Wed, Nov 3, 2010 at 7:13 AM, Vitja Makarov wrote:
>>>> I've fixed classmethod issue patch is in trac.
>>>
>>> Very cool. Looks like I only apply the last patch, right?
>>
>> Sweet. All looks well. I've merged it.
>
> Hmm, it has a ref-leak and it doesn't work in Py3. Not that well after all.
>
Where is ref-leak? Guess it's somewhere in
PyClassDefNode.generate_execution_code
> I actually don't think that "python3+ handle __metaclass__ itself". Why
> should it? It has syntax support for this very feature.
>
Yes, I didnt knew much about python3.
Now it seems to me that class declaration is more like function call
with special case for metaclass keyword and positional arguments:
class Base(type):
def __new__(cls, name, bases, attrs, **kwargs):
print(cls, name, bases, attrs, kwargs)
class Foo(1, 2, 3, metaclass=Base, foo='bar'):
def hello(self):
pass
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev