Skip to content

inspect: support get_original_fn for class method#115

Open
kimjh12 wants to merge 1 commit intoquora:masterfrom
kimjh12:master
Open

inspect: support get_original_fn for class method#115
kimjh12 wants to merge 1 commit intoquora:masterfrom
kimjh12:master

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