Код: Выделить всё
from aspectlib import Aspect
class ClassAspect:
@Aspect
def instance_method{self, *args, **kwargs):
Код: Выделить всё
import ClassAspect
@ClassAspect.instance_method:
def cross_point():
Код: Выделить всё
TypeError: ClassAspect.instance_method() missing 1 required positional argument: 'self'
Подробнее здесь: https://stackoverflow.com/questions/791 ... nce-method
Мобильная версия