This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> My deeply biased and very personal ideology her e is if how emacs
> handles it.

I think it would be wrong to adopt that philosophy, and to be honest,
I'm getting a little tired about having to suffer certain decisions
purely because this is the default emacs indentation style. Even
if I did use emacs, I just think it's more important to be consistent
with the rest of the Python community.

There is actually an official Python Coding Style, called PEP8:

    http://www.python.org/dev/peps/pep-0008/

I think we should strive to not break whatever suggestions this guide
provides, and add some extra of our own if we feel necessary.

I looked at the Google Python Style Guide, and it does not conflict
with PEP8. I also have relatively limited knowledge of Python, but
I absolutely agree with everything in that document.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]