[Python] Get parent function

Discussão em 'Python' iniciado por Stack, Abril 13, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a way to find what function called the current function? So for example:

    def first():
    second()

    def second():
    # print out here what function called this one


    Any ideas?

    Continue reading...

Compartilhe esta Página