[Yum-devel] code style things

seth vidal skvidal at phy.duke.edu
Wed Mar 2 06:53:41 UTC 2005


Some minor code style things I wanted to bring up.
some of the new stuff being checked in I've noticed some style
inconsistencies. They're not a big deal but I wouldn't mind deciding on
one style and going with it a bit more.


if (foo >= 1):
   dostuff()

I tend to prefer:
if foo >= 1:
  dostuff()

this isn't C, we don't have to enclose our if statements, so why should
we?

also

dostuff(foo,bar,baz)
I tend to prefer, and like:
dostuff(foo, bar, baz)

I used to not care and then at some point it started bugging me.

thoughts?

-sv





More information about the Yum-devel mailing list