[olug] ANN: Omaha Python Users Group Meeting, Aug 1 @ 7pm

Jeff Hinrichs - DM&T jeffh at dundeemt.com
Tue Jul 31 03:48:16 UTC 2007


On 7/30/07, Sam Tetherow <tetherow at shwisp.net> wrote:
> There is a big difference between should and must.
Yes, there is.   Must is enforced by the interpreter/compiler, should
is enforced by convention.
Just because you can, doesn't mean you should. ;)
With python, whitespace is not a should, it is a must.
conventions are listed in PEP8 -- http://www.python.org/dev/peps/pep-0008/
-jeff
>
> Sam Tetherow
> Sandhills Wireless
>
> Jay Hannah wrote:
> > On Mon, 30 Jul 2007, Luke -Jr wrote:
> >
> >> I find it fairly annoying that Python requires indentation as syntax. When I
> >> modify code, I try to change as little as possible to minimize the diff, but
> >> with Python, removing an 'if' means removing an entire level of indentation
> >> on every line subsequent...
> >>
> >
> > Which is best practice anyway. Perl's flexibility is great when you need
> > it, but 99% of your if blocks should be indented. So if you remove an if
> > you'll re-indent the block.
> >
> > Assuming you want yourself and others to be able to read your code.  :)
> >
> > $0.02,
> >
> > j
> > Omaha Perl Mongers:  http://omaha.pm.org
> >
> >
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > http://lists.olug.org/mailman/listinfo/olug
> >
> > <a href="http://mail.shwisp.net/spam/dspam.cgi?template=history&user=tetherow&retrain=spam&signatureID=16,46ae47f9201352015797174">!DSPAM:16,46ae47f9201352015797174!</a>
> >
> >
> >
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>



More information about the OLUG mailing list