Was going through a Python tutorial, but it seems kinda dated. Wanted to know if people regularly use docstrings in the workforce. Or are they somewhat irrelevant because you can convey most of that info via comments and context? Do jobs make you use them?

  • heavydust@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    6 days ago

    I wouldn’t say it’s “more important” in Python but usually: 1. Documentation is very important in every language, and 2. Python uses docstrings to achieve this.