Another Ubuntu Book

Michael Shigorin mike at osdn.org.ua
Mon Feb 6 20:05:00 GMT 2006


On Mon, Feb 06, 2006 at 08:57:59PM +0200, Steve Alexander wrote:
> > It would be interesting to hear how exactly do people strive
> > within larger Python projects regarding different coding
> > habits and editor setups (which just don't happen to have a
> > "universal standard").
> Here's what Launchpad developers use:
>   https://wiki.launchpad.canonical.com/PythonStyleGuide

* Indents should be 4 spaces.
* No tabs. This is not negotiable.

Ouch.

No, I understand what's this about...

> Many Python projects use PEP-8 as the baseline for their coding style:
>   http://www.python.org/peps/pep-0008.html

Mixed feelings.  On one hand, most of that is either identical or
very similar to what I've grown to use too (trying to learn what
seems reasonable), on the other hand -- inheritance-related mess 
is only a bit less ugly than fighting for peace, I mean, forcing
space-sensitive syntax upon those who can find their way around
more than 100 lines of code.

I really don't doubt Python is (and will be, just like Java)
a production and industrial language, it's just it's nothing 
to write home about to me...  oh well, maybe I was spoiled 
by studying Lisp 14 years ago and grokking OO with Ruby after
unsuccessful attempts with C++ and Java (and Python 1.x).

Thanks again, though; and good luck both to you and Google
with this stuff.  Maybe there's a way to refactor industrial
coding languages into *programming* ones. :)

-- 
 ---- WBR, Michael Shigorin <mike at altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/



More information about the sounder mailing list