Tomeu,<div><br></div><div>Thank you for the pointers.</div><div><br></div><div>Appreciate it. We&#39;ll have a meeting this evening to discuss on your timely feedback.</div><div><br></div><div>Regards,</div><div><br></div>
<div>Manu<br><br><div class="gmail_quote">On Sun, Aug 15, 2010 at 7:51 PM, Tomeu Vizoso <span dir="ltr">&lt;<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Sat, Aug 14, 2010 at 18:02,  &lt;<a href="mailto:sugar@dev.seeta.in">sugar@dev.seeta.in</a>&gt; wrote:<br>
&gt; Hello all,<br>
&gt;<br>
&gt; I&#39;ve made some changes to the docstrings in graphics/animator.py for its<br>
&gt; documentation and have uploaded the HTML generated using sphinx at:<br>
&gt; <a href="http://seeta.in/sugar/api/documentation/desttemp/html2/animator.html" target="_blank">http://seeta.in/sugar/api/documentation/desttemp/html2/animator.html</a><br>
&gt;<br>
&gt; You can compare it with the initial one at:<br>
&gt; <a href="http://api.sugarlabs.org/sphinx/animator.html" target="_blank">http://api.sugarlabs.org/sphinx/animator.html</a><br>
&gt;<br>
&gt; Attaching the original and new animator.py files along with the patch<br>
&gt; generated using &#39;git format-patch master&#39;<br>
&gt;<br>
&gt; I&#39;ve also made a spreadsheet for the documentation and am maintaining it at<br>
&gt; <a href="https://spreadsheets.google.com/a/seeta.in/ccc?key=0AjslliQkdNyvdFZjWnNwcEZzSC1fMkt6ZDlOOUFFMUE&amp;hl=en#gid=0" target="_blank">https://spreadsheets.google.com/a/seeta.in/ccc?key=0AjslliQkdNyvdFZjWnNwcEZzSC1fMkt6ZDlOOUFFMUE&amp;hl=en#gid=0</a><br>

&gt; Attaching it.<br>
&gt;<br>
&gt; Please see if you would like to help or let me know in case of any<br>
&gt; suggestions/feedback.<br>
<br>
</div></div>Hi Kandarp, some suggestions follow:<br>
<br>
&gt; Subject: [PATCH] description of animator.py<br>
<br>
The docstring for the module animator.py isn&#39;t really included in this patch.<br>
<br>
&gt;  animator1.py |   69 ++++++++++++++++++++++++++++++---------------------------<br>
<br>
This is very weird as there&#39;s no animator1.py file in sugar-toolkit.<br>
Please go through a git tutorial first, we&#39;ll all save time.<br>
<br>
&gt; +    :Inherits: gobject.GObject<br>
<br>
Sphinx cannot get this information from the code? Is it common<br>
practice in sphinx-generated docs?<br>
<br>
&gt; +        Returns<br>
&gt; +            - None<br>
<br>
Can we leave this implicit?<br>
<br>
&gt; +        Description: Adds animation type<br>
<br>
Why type? Seems to be adding an Animation instance.<br>
<br>
&gt; +        Parameters<br>
&gt; +            - None<br>
<br>
Can we leave this implicit?<br>
<br>
&gt; +        Description: Stops animation, removes animation type<br>
<br>
See above.<br>
<br>
&gt; +        Description: Records starting time, sets timeout_sid<br>
<br>
Docstrings should describe functionality, not explain the implementation.<br>
<br>
&gt; +class Animation(object):<br>
<br>
Watch out adding trailing spaces<br>
<br>
&gt; +        Description: Updates frame, ends after t=duration<br>
<br>
PEP 257 says to use the first line for the one-line summary.<br>
<br>
Are you using any documented guidelines for the format of the docstrings?<br>
<br>
I would _strongly_ advise to start by adding docstrings to packages<br>
and modules. And only once that&#39;s done then get to classes and other<br>
top-level elements, then finally to methods.<br>
<br>
If you try to document the details before understanding the big<br>
picture, you are likely to fail.<br>
<br>
Regards,<br>
<br>
Tomeu<br>
<br>
&gt; Regards,<br>
&gt; Kandarp.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Sugar-devel mailing list<br>
&gt; <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
&gt; <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>