Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74051
| References | <53B59358.2040404@tobiah.org> |
|---|---|
| Date | 2014-07-06 12:25 -0700 |
| Subject | Re: PEP8 and 4 spaces |
| From | Dan Stromberg <drsalists@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11557.1404674726.18130.python-list@python.org> (permalink) |
On Thu, Jul 3, 2014 at 10:31 AM, Tobiah <tshepard@rcsreg.com> wrote: > Coworker takes PEP8 as gospel and uses 4 spaces > to indent. I prefer tabs. I recently converted from tabs to spaces. I probably still have some code that uses tabs, but most of my personal stuff has been converted. I like tabs. Tabs work better for me than spaces, because I know how to use them. Also, some "make" tools insist on tabs. Also, where many people like 4 spaces or 8 spaces, I prefer tabs expanded to 3 columns. But I finally acknowledged that some very smart people don't understand tabs, or don't want to learn how to use them. Also, I figured out how to get python files to use spaces and Makefile's to use tabs, using some slight vim configuration. So I'm using 4 spaces now. It's nice not having to ignore the relevant pep8 and pylint warnings anymore. And I don't miss tabs nearly as much as I thought I would. In fact, I'm not sure I miss them at all.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: PEP8 and 4 spaces Dan Stromberg <drsalists@gmail.com> - 2014-07-06 12:25 -0700 Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-06 15:34 -0400
csiph-web