<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 07/07/2010 17:06, Shashwat Anand wrote:
<blockquote
 cite="mid:AANLkTinhJNYEf5etpNj7pNhOGomZYb42X-XzWTalmAub@mail.gmail.com"
 type="cite"><br>
  <br>
  <div class="gmail_quote">On Wed, Jul 7, 2010 at 9:24 PM, C. Titus
Brown <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:ctb@msu.edu">ctb@msu.edu</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
all,<br>
    <br>
over on the fellowship o' the packaging mailing list, one of our GSoC
students<br>
(merwok) asked about how much formatting info should go into Python
stdlib<br>
docstrings. &nbsp;Right now the stdlib docstrings are primarily text, AFAIK;
but<br>
with the switch to Sphinx for the official Python docs, should we permit<br>
ReST-general and/or Sphinx-specific markup in docstrings?<br>
    <br>
Hmm, I don't actually see that the stdlib docstrings are imported into
the<br>
Python documentation anywhere, so maybe the use of Sphinx isn't that<br>
relevant. &nbsp;But how about ReST in general?<br>
  </blockquote>
  <div><br>
  </div>
  <div>So will we be able to use .__docs__ within python interpretor,
which is quite handy feature.</div>
  <div>&gt;&gt;&gt; print(os.getcwd.__doc__)</div>
  <div>getcwd() -&gt; path</div>
  <div><br>
  </div>
  <div>Return a string representing the current working directory.</div>
  <div>Also some python interpretors like bpython uses it ; a snapshot
here - &nbsp;h<a moz-do-not-send="true"
 href="ttp://cl.ly/c5bb3be4a01d9d44732f">ttp://cl.ly/c5bb3be4a01d9d44732f</a></div>
  <div>So will it be ok to break them ?</div>
  </div>
</blockquote>
<br>
Using ReST won't *break* these tools, but may make the output less
readable. <br>
<br>
I would say that the major use of docstrings is for interactive help -
so interactive readability should be *the most important* (but perhaps
not only) factor when considering how to format standard library
docstrings.<br>
<br>
Michael<br>
<br>
<blockquote
 cite="mid:AANLkTinhJNYEf5etpNj7pNhOGomZYb42X-XzWTalmAub@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">
  <div>&nbsp;</div>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
See<br>
    <br>
&nbsp; &nbsp; &nbsp; &nbsp;<a moz-do-not-send="true"
 href="http://sphinx.pocoo.org/markup/index.html" target="_blank">http://sphinx.pocoo.org/markup/index.html</a><br>
    <br>
for sphinx-specific markup constructs.<br>
    <br>
thanks,<br>
--titus<br>
    <font color="#888888">--<br>
C. Titus Brown, <a moz-do-not-send="true" href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
    <br>
    </font></blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk">http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (&#8221;BOGUS AGREEMENTS&#8221;) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

</pre>
</body>
</html>