Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: A desperate lunge for on-topic-ness

Reply
Thread Tools

Re: A desperate lunge for on-topic-ness

 
 
Demian Brecht
Guest
Posts: n/a
 
      10-18-2012
> 3. Say "well, at least it's not a backslash" and break the line using
> parentheses.


This. More times than not, there's a function call in that line, which
makes sense to me when reading it if the args are on the next line.

> 4. Spend 45 minutes trying to think up shorter [but still sensible]
> variable names to make it fit.


I generally can't shorten my variable names without breaking the
minimum length PEP8 rule


Now having said that, it kind of depends on the code base I'm working
with. If it's my own project, I never go past 79 characters (vim
tw=79). However, if it's a code base that I didn't start and it seems
to consistently go past 79 characters, I'll usually follow suit (with
my feet dragging of course). Nothing worse than inconsistency, even if
it's a standard I don't necessarily agree with
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A desperate lunge for on-topic-ness Zero Piraeus Python 24 10-19-2012 10:16 PM
Re: A desperate lunge for on-topic-ness Jean-Michel Pichavant Python 2 10-19-2012 05:59 PM
Re: A desperate lunge for on-topic-ness Chris Angelico Python 0 10-18-2012 04:15 PM
Re: A desperate lunge for on-topic-ness Mark Lawrence Python 0 10-18-2012 09:12 AM
Re: A desperate lunge for on-topic-ness Chris Angelico Python 0 10-18-2012 06:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57