Re: Python coding style [was Re: [RFA] New python module gdb.types]

Joel Brobecker
2010-10-08T15:17:51Z

> My own opinion is that we should purely not opt for one particular
> flavor because there exists a vacuum. Why not follow the PEP to the
> letter? The Google guide looks sane, and really nice. But what are the
> strong feelings the project should add this particular sauce over the
> PEP? I just want to briefly examine those questions.

I think we are in a violent agreement, here. The Google guide is
interesting, not because of its (relatively short) section on formatting,
but because it gives some brief tips of things that we should or should
not do when writing Python code. My initial reaction when learning
Python was pretty negative because it wasn't the perfect language I was
lead to believe. If you read the "Learning Python" book, you'll find
that pretty much every chapter in that book has a "gotchas" section
at the end...

--
Joel