"docstring" meaning in English

See docstring in All languages combined, or Wiktionary

Noun

Forms: docstrings [plural]
Etymology: doc + string; see doc (“documentation”). Etymology templates: {{compound|en|doc|string}} doc + string, {{m|en|doc||documentation}} doc (“documentation”) Head templates: {{en-noun}} docstring (plural docstrings)
  1. (programming) A string literal specified in source code that is used, like a comment, to document a specific segment of code, but remains available at run-time. Categories (topical): Programming Related terms: here document

Inflected forms

Download JSON data for docstring meaning in English (1.7kB)

{
  "etymology_templates": [
    {
      "args": {
        "1": "en",
        "2": "doc",
        "3": "string"
      },
      "expansion": "doc + string",
      "name": "compound"
    },
    {
      "args": {
        "1": "en",
        "2": "doc",
        "3": "",
        "4": "documentation"
      },
      "expansion": "doc (“documentation”)",
      "name": "m"
    }
  ],
  "etymology_text": "doc + string; see doc (“documentation”).",
  "forms": [
    {
      "form": "docstrings",
      "tags": [
        "plural"
      ]
    }
  ],
  "head_templates": [
    {
      "args": {},
      "expansion": "docstring (plural docstrings)",
      "name": "en-noun"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "noun",
  "senses": [
    {
      "categories": [
        {
          "kind": "other",
          "name": "English entries with incorrect language header",
          "parents": [
            "Entries with incorrect language header",
            "Entry maintenance"
          ],
          "source": "w"
        },
        {
          "kind": "topical",
          "langcode": "en",
          "name": "Programming",
          "orig": "en:Programming",
          "parents": [
            "Computing",
            "Software engineering",
            "Technology",
            "Computer science",
            "Engineering",
            "Software",
            "All topics",
            "Sciences",
            "Applied sciences",
            "Media",
            "Fundamental",
            "Communication"
          ],
          "source": "w"
        }
      ],
      "glosses": [
        "A string literal specified in source code that is used, like a comment, to document a specific segment of code, but remains available at run-time."
      ],
      "id": "en-docstring-en-noun-xAkVg72C",
      "links": [
        [
          "programming",
          "programming#Noun"
        ],
        [
          "string",
          "string"
        ],
        [
          "literal",
          "literal"
        ],
        [
          "source code",
          "source code"
        ],
        [
          "comment",
          "comment"
        ],
        [
          "run-time",
          "run-time"
        ]
      ],
      "raw_glosses": [
        "(programming) A string literal specified in source code that is used, like a comment, to document a specific segment of code, but remains available at run-time."
      ],
      "related": [
        {
          "word": "here document"
        }
      ],
      "topics": [
        "computing",
        "engineering",
        "mathematics",
        "natural-sciences",
        "physical-sciences",
        "programming",
        "sciences"
      ]
    }
  ],
  "word": "docstring"
}
{
  "etymology_templates": [
    {
      "args": {
        "1": "en",
        "2": "doc",
        "3": "string"
      },
      "expansion": "doc + string",
      "name": "compound"
    },
    {
      "args": {
        "1": "en",
        "2": "doc",
        "3": "",
        "4": "documentation"
      },
      "expansion": "doc (“documentation”)",
      "name": "m"
    }
  ],
  "etymology_text": "doc + string; see doc (“documentation”).",
  "forms": [
    {
      "form": "docstrings",
      "tags": [
        "plural"
      ]
    }
  ],
  "head_templates": [
    {
      "args": {},
      "expansion": "docstring (plural docstrings)",
      "name": "en-noun"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "noun",
  "related": [
    {
      "word": "here document"
    }
  ],
  "senses": [
    {
      "categories": [
        "English compound terms",
        "English countable nouns",
        "English entries with incorrect language header",
        "English lemmas",
        "English nouns",
        "Translation table header lacks gloss",
        "en:Programming"
      ],
      "glosses": [
        "A string literal specified in source code that is used, like a comment, to document a specific segment of code, but remains available at run-time."
      ],
      "links": [
        [
          "programming",
          "programming#Noun"
        ],
        [
          "string",
          "string"
        ],
        [
          "literal",
          "literal"
        ],
        [
          "source code",
          "source code"
        ],
        [
          "comment",
          "comment"
        ],
        [
          "run-time",
          "run-time"
        ]
      ],
      "raw_glosses": [
        "(programming) A string literal specified in source code that is used, like a comment, to document a specific segment of code, but remains available at run-time."
      ],
      "topics": [
        "computing",
        "engineering",
        "mathematics",
        "natural-sciences",
        "physical-sciences",
        "programming",
        "sciences"
      ]
    }
  ],
  "word": "docstring"
}

This page is a part of the kaikki.org machine-readable English dictionary. This dictionary is based on structured data extracted on 2024-05-18 from the enwiktionary dump dated 2024-05-02 using wiktextract (1d5a7d1 and 304864d). The data shown on this site has been post-processed and various details (e.g., extra categories) removed, some information disambiguated, and additional data merged from other sources. See the raw data download page for the unprocessed wiktextract data.

If you use this data in academic research, please cite Tatu Ylonen: Wiktextract: Wiktionary as Machine-Readable Structured Data, Proceedings of the 13th Conference on Language Resources and Evaluation (LREC), pp. 1317-1325, Marseille, 20-25 June 2022. Linking to the relevant page(s) under https://kaikki.org would also be greatly appreciated.