Skip to content

Conversation

@kimjh12
Copy link

@kimjh12 kimjh12 commented Nov 13, 2025

When a method decorated with DecoratorBase is accessed via Class.method or instance.method, Python's descriptor protocol automatically calls DecoratorBase.get(), which returns DecoratorBinder object.
One example is marking a class method by asynq (https://github.com/quora/asynq)

When a method decorated with DecoratorBase is accessed via Class.method or instance.method,
Python's descriptor protocol automatically calls DecoratorBase.__get__(), which returns
DecoratorBinder object.
One example is marking a class method by `asynq` (https://github.com/quora/asynq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant