<br><br><div class="gmail_quote">On Fri, Nov 27, 2009 at 2:03 AM, Stefan Lesicnik <span dir="ltr">&lt;<a href="mailto:stefan@lsd.co.za">stefan@lsd.co.za</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

hihi!  (two in 1 day!)<br>
<br>
Is there a document, pep, wiki etc that defines best practice for python code?  (maybe its more generic).<br>
<br></blockquote><div> </div><div> This one is fairly comprehensive:</div><div><a href="http://www.python.org/dev/peps/pep-0008/">http://www.python.org/dev/peps/pep-0008/</a></div><div> </div><div>HTH,</div><div>Wayne</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I keep stumbling on things I think, it would be nice if someone mentioned this. Some things ive seen<br>
<br>
- keep you try blocks as small as possible, so you can isolate the error<br>
- functions should return one value (im not 100% of this one)<br>
- declare variable names in a certain way (place?)<br>
- use the if __name__ == &#39;__main__&#39;: main() convention<br>
<br>
im sure there are tons more, that i only figure out after stumbling through them. does anyone know if its written down, or stumbling is just part of the learning process?<br>
<br>
stefan<br>
_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn’t. - Primo Levi<br>