---
title: "Discussion on \"Who calls my func?\" | Hashnode"
description: "Discussion on \"Who calls my func?\". Source: https://stackoverflow.com/questions/2654113/how-to-get-the-callers-method-name-in-the-called-method\nimport inspect\n\ndef f1(): f2()\n\ndef f2():\n    curframe = inspect.currentframe()\n    calframe = inspect.getouterframes(curframe, 2)\n    print('..."
url: "https://hashnode.com/posts/who-calls-my-func/6577bb856d683ba1e1a9626e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Who calls my func?](https://signal11.hashnode.dev/who-calls-my-func?utm_source=hashnode&utm_medium=feed)

Source: https://stackoverflow.com/questions/2654113/how-to-get-the-callers-method-name-in-the-called-method import inspect def f1(): f2() def f2(): curframe = inspect.currentframe() calframe = inspect.getouterframes(curframe, 2) print('...

Dec 12, 2023 · 1 min read · signal11.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[Tung Pham](https://hashnode.com/@signal11)

@signal11

  
[View profile](https://hashnode.com/@signal11)

Random things

Doing unexpectedly geeky stuff.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
