docstring

D2O1C3S1T1R1I1N1G2
UK/ˈdɒk.stɹɪŋ/US/ˈdɑk.stɹɪŋ/

noun

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.

UncommonScrabble 13

Meanings

noundocstring (plural docstrings)

plural docstrings

  1. computingA 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.

Origin

From doc + string; see doc (“documentation”).

Full word history & related roots →
Cite this entry
APA

docstring. (n.d.). In WatkinsX Dictionary. Retrieved November 3, 2026, from https://dictionary.watkinsx.com/word/docstring

MLA

“docstring.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/docstring. Accessed November 3, 2026.

Chicago

WatkinsX Dictionary, s.v. “docstring,” accessed November 3, 2026, https://dictionary.watkinsx.com/word/docstring.

Source: docstring on Wiktionary, CC BY-SA 4.0.