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

Kevin sharpestmarble at gmail.com
Mon Jul 30 21:19:54 UTC 2007


On 7/30/07, Luke -Jr <luke at dashjr.org> wrote:
> On Monday 30 July 2007 20:16, 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.  :)
>
> What are astyle and such for? :)

The same thing that vim and the command sequence "gg=G" are(without
quotes): To correct indenting. :D

*wants to learn perl & python, but doesn't have time*



More information about the OLUG mailing list