[issue13264] Monkeypatching using metaclass

2011-11-14 Thread Éric Araujo
Éric Araujo added the comment: Artem, if you have further information to make us reconsider this issue, please add a new message. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue13264] Monkeypatching using metaclass

2011-11-12 Thread Daniel Urban
Daniel Urban added the comment: > It seems to me this is not a bug. +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13264] Monkeypatching using metaclass

2011-11-12 Thread Éric Araujo
Éric Araujo added the comment: It seems to me this is not a bug. Closing? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bu

[issue13264] Monkeypatching using metaclass

2011-10-25 Thread Daniel Urban
Daniel Urban added the comment: > class Meta(ABCMeta): > def __instancecheck__(cls, instance): > # monkeypatching class method > cls.__subclasscheck__ = super(Meta, cls).__subclasscheck__ This line is approximately the same as: cls.__dict__['__subclasscheck__'] = ...

[issue13264] Monkeypatching using metaclass

2011-10-25 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13264] Monkeypatching using metaclass

2011-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13264] Monkeypatching using metaclass

2011-10-25 Thread Artem Tomilov
New submission from Artem Tomilov : from abc import ABCMeta class Meta(ABCMeta): def __instancecheck__(cls, instance): # monkeypatching class method cls.__subclasscheck__ = super(Meta, cls).__subclasscheck__ return super(Meta, cls).__instancecheck__(instance) def