[Python] How to get method parameter names?

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    Given that a function a_method has been defined like

    def a_method(arg1, arg2):
    pass


    Starting from a_method itself, how can I get the argument names - for example, as a tuple of strings, like ("arg1", "arg2")?

    Continue reading...

Compartilhe esta Página