Vitja Makarov, 13.11.2010 14:29:
> Here is test case that fails now, because of decorators implementation.
> Bar attribute is assigned twice.
>
> class ODict(dict):
>      def __init__(self):
>          dict.__init__(self)
>          self._order = []
>          dict.__setitem__(self, '_order', self._order)
>
>      def __setitem__(self, key, value):
>          dict.__setitem__(self, key, value)
>          self._order.append(key)
>
> class Base(type):
>      @staticmethod
>      def __prepare__(*args, **kwargs):
>          return ODict()
>
> class Foo(metaclass=Base):
>      """
>      >>>  Foo._order
>      ['__module__', '__doc__', 'bar']
>      """
>      @property
>      def bar(self):
>          return 0

That's unrelated to the feature itself, so it's ok for now.

Could you open a trac ticket for this?

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

Reply via email to