About 50 results
Open links in new tab
  1. How to write help/description text for Python functions?

    May 11, 2025 · 33 I recently started programming using Python. I have to write many functions and was wondering how I can incorporate a help or description text such that it appears in the object inspector …

  2. How to document a method with parameter (s)? - Stack Overflow

    How to document methods with parameters using Python's documentation strings? PEP 257 gives this example: def complex (real=0.0, imag=0.0): """Form a complex number. Keyword

  3. What is the proper way to comment functions in Python?

    Mar 2, 2010 · 6 Read about using docstrings in your Python code. As per the Python docstring conventions: The docstring for a function or method should summarize its behavior and document its …

  4. Multi-line description of a parameter description in python docstring

    Sep 14, 2015 · 85 So, reStructuredText is the recommended way for Python code documentation, if you try hard enough, you can find in the sphinx documentation how to normalize your function signature …

  5. python: how to get information about a function?

    Now, in the documentation of Python information can be found about these functions, but I would like to get info about these functions in the terminal/command-line.

  6. What are the most common Python docstring formats?

    I find the "signature in docstrings"-style awfully redundant and verbose. For Python 3+, Function annotations are a much cleaner way to do this. Even worse if it uses pseudo-strong-types: Python is …

  7. python - how to obtain a function's name and/or a description given a ...

    Feb 1, 2013 · I am using Python 2.7. Is there a way to associate a name, description and perhaps other metadata with a function so that I don't have to use an external dictionary to keep such information …

  8. How do I document a module in Python? - Stack Overflow

    Here is an Example Google Style Python Docstrings on how module can be documented. Basically there is an information about a module, how to execute it and information about module level …

  9. Basic explanation of python functions - Stack Overflow

    Sep 5, 2015 · The same is true of the arguments in the function you've provided. This means that the order of the arguments in a function call is important. The Python language, like many others, …

  10. What is the `current` correct format for Python Docstrings according to ...

    Dec 2, 2022 · Returns: return_type: Description of the return value. """ This format is compatible with Python 3.6 and later versions, and is also backward compatible with older versions of Python. It is …