
doctoring

prograaming mein, ack dockstring ack string shaabdik haye joe srot code mein nirdisht haye jiska upayog ack tippani kii tarah, code key ack vishisht khand koo dastaavez karane key liye kiya jaataa haye. paaramparik srot code tippaniyon key vipareet, yaa yahaan taka kii dockblocks jaisi vishesh roop seey praarupit tippaniyon key vipareet, dockstring koo srot vriksh seey taba naheen hataaya jaataa haye jaba ise pars kiya jaataa haye aur karyakram key poore runtime mein banaae rakhaa jaataa haye. yeh programmer koo inn tippaniyon kaa nireekshan karane kii anumati detaa haye, udaaharan key liye ack samvaadaatmak sahaayata pranali key roop mein, yaa metadeta key roop mein.
dockstring kaa samarthan karane vaali bhaashaon mein python, lisp, elixir, closure, gerkin, julia aur haskell shamil hain.
karyanvayan key udaaharan.
amrit.
dastaavez bhasha star parr, dastaavez key roop mein samarthit haye. markdown doxtring mein upayog key liye pasand kii amrit kii vaastavik markup bhasha haih
df module mymodule karein
 @moduledoc ""
 merey module key liye pralekhan. * * praarupan key saath * *.
 @doc "hallow"
 duniya karati haye
 "duniya"
 anta
anta
lisp.
lisp mein, dockstring koo pralekhan string key roop mein jaanaa jaataa haye. samanya lisp maanak mein kahaa gayaa haye kii ack vishesh karyanvayan jaba bhee chaahe, kissy bhee kaaran seey, doxtring koo tyagane kaa vikalp chuna sakata haye. jaba unhein rakhaa jaataa haye, tou dastaavez kaary kaa upayog karke dastaavezon koo dekhaa aur badala jaa sakata haye. udaaharan key liyeh
 (defune phoo () "haay deyar" shoonya)
 (pralekhan #'phoo' kaary) => "haay vahaan"
ajgar.
ack code object koo isaki paribhasha key sheersh parr dastavejikaran karane kaa samanya abhyaas python bhasha mein dockstring vaakya rachana key jodd dwara pakada jaataa haye.
python code object (ack module, varg, yaa kaary) key liye dockstring usa code object kaa pahala kathan haye, joe paribhasha ('diff' yaa 'class' kathan) kaa turant anusaran kartaa haye. kathan ack bayer string shaabdik honah chaahiye, kissy anya prakaar kii abhivyakti naheen. code object key liye dockstring usa code object key cock _ 1 visheshta parr aur cock _ 2 function key madhyam seey upalabdh haye.
nimnalikhit python file python srot file key bheetar dockstring kii ghoshana dikhaati haih
"" "module kaa dockstring" ""
class maay klaasah
 "" "varg kii doctoring" ""
 dafe maay methed (self):
 "" "vidhi kaa doctoring" ""
merey function () koo diff karein (_ f):
 "" "kaary kii doctoring" ""
yeh maanate hue kii uparokt code koo saheja gayaa thaa, nimnalikhit ack samvaadaatmak satra haye joe darshaata haye kii dockstring koo kaise axes kiya jaa sakata haih
> ayaat mymodule
> madad (mymodule)
module kii dockstring
> madad (mymodule.merrie kaksha)
varg kii doctoring
> madad (mymodule.merrie class.merrie vidhi (_ m)
vidhi kii doctoring
> madad (mymodule.meraa kaary (_ f)
kaary kii doctoring

