On Sat, May 16, 2015 at 4:29 PM, 'Terry Brown' via leo-editor < [email protected]> wrote:
> > No PEP 8 transformations should be made without watching this: > https://www.youtube.com/watch?v=wf-BqAjZb8M > Thanks for this link. It's a good talk. As far as gorillas go, c, g and c.p are supremely simple ways of getting the job done. Stylistic *hangnails *weigh on my mind. I wish they didn't, but they do. I want to remove hangnails, but only if that can be done safely. At present, I run unit tests, run pylint and look at the diffs whenever I clean code. Alas, present testing is not enough. Notice that the testing problem is *independent* of what I consider to be a hangnail. I see only two alternatives: 1. Never remove hangnails, no matter how irritating. 2. Create a tool that allows us all to remove hangnails *safely*. I'll say more about #2 in another reply. Edward P.S. [My actual preferences] I used the phrase Pep-8 in the original post to refer to these kinds of cleaning: 1. I hate extraneous blank lines. YMMV. 2. Once blank lines are gone, I like to put return statements on separate lines. 3. I like a,c = b,d instead of a = b ; c = d 4. Moving comments into docstrings. 5. Running Leo's beautify commands. I never mess with line length. The ridiculous continuation-line indentation is the worst part of pep-8. Imo, continuation lines should have just one extra level of indentation. There is no need to align function arguments to the opening '('. Please let's not argue about these personal preferences of mine. EKR -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
