Closed tobrien6 closed 9 years ago
Actually if you could let me know what the glaring PEP8 violations are, I'd appreciate that. I haven't read through it closely.
The most glaring PEP-8 issue is the 80-characters per line limit, which some people feel more strongly about than others. Next, we usually put spaces between #s and the starts of comments. Also, spaces between operators and operands (e.g. x[0] + lower
is better than x[0]+lower
, s[0] != s[1]
is better than s[0]!=s[1]
, etc.)
Last big-picture thing, perhaps a slight reorganization of the methods could help make this more readable. I'd put helper functions like intervals
and chunks
closer to the top, grouped more or less by what they do, with the meatier functions further down.
Should I merge now?
I'm just going to give it one more pass to see if I spot anything else. I'll merge it once any additional agreed-upon changes have been made.
The whole script could benefit a bit from some PEP-8 attention, but that's probably less important considering that it's just sales engineering code.