Where does “docstring” come from?

docstring (English) comes from English DOC, from English doctor, from Middle English doctour, from Anglo-Norman doctour, from Latin doctor, from Latin -tor, from Proto-Italic -tōr, from Proto-Indo-European -tōr.

docstring (English): A string literal specified in source code that is...

Definitions

  1. A string literal specified in source code that is...

Ancestry of “docstring”, step by step

docstring traces back through two separate lines of ancestry.

via English DOC

StepLanguageWordMeaning
1EnglishDOCInitialism of drug of choice; Initialism of...
2EnglishdoctorA physician; a member of the medical profession;...
3Middle Englishdoctourdoctor
4Anglo-NormandoctourAlternative spelling of doctur
5Latindoctorteacher, instructor; catechist
6Latin-tor-er
7Proto-Italic-tōrForms agent nouns to verb stems
8Proto-Indo-European-tōrDerives agent nouns from verbs, denoting someone...
9Proto-Indo-European-tor-s

via English string

StepLanguageWordMeaning
1EnglishstringA long, thin and flexible structure made from...
2Middle Englishstring
3Old Englishstrengstring
4Proto-Germanicstrangizstring
5Proto-Indo-Europeanstrengʰ-to twist; rope, cord
6Proto-Indo-Europeanster-sterile, infertile
Every word from Proto-Indo-European -tor-sEvery word from Latin -torEvery word from Latin doctor