Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14301

Python Recursive Method Wrapping

$
0
0

I need a way to wrap not just one method, but a way to wrap all callees of that method upon its call, and all callees of the callees as well (i.e. recursive wrapping). Is this possible? If so, what is the proper way to do it? If it's not possible, what is the closest equivalent? My ultimate goal is to achieve this:

# Ultimate Goal: Develop a custom solution that dynamically logs subsequent method calls that are **direct continuations of an initial method's execution path**.# Recursive Definition - Methods that are **direct continuations of an initial method's execution path** are methods that satisfy one or more of the below properties:    # 0. Base case: The initial method wrapped by entry_point automatically satisfied the definition of: **direct continuations of an initial method's execution path**    # 1. Methods called within another method that recursively satisfies: **direct continuations of an initial method's execution path**    # 2. Methods called as a subsequent chain (i.e. ().() ) of a method that recursively satisfies: **direct continuations of an initial method's execution path**    # 3. Methods that are called as part of the process that delivers the direct response from an external endpoint that corresponds to a specific client-side method that makes a request to an external endpoint, given that the client-side method that makes the request satisfies: **direct continuations of an initial method's execution path**

Viewing all articles
Browse latest Browse all 14301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>