On 3/23/15 3:18 PM, john wrote:

I understand you.  But if I understand the PEP -8, you are violating it
with 85 chars - which states lines not longer than 79 chars. How's that

The spirit of the law, not absolute conformance...

any different than my limit?  With the descriptive names we use today
it's very easy to pass your 85 char limit.  Sure you can add '\' but
some of the editors don't like it and then there is the debuggers.

The only place I use \ these days is in import statements, like:

from django.very.nested.python.module import VeryLongClassName1, \
    VeryLongClassName2, VeryLongClassName3

For long if statements, I use local variables to shorten the args, and if I still run long I use the sadface notation:

if (
  long_line 1
  and long_line2
):
  be_happy()
else:
  now_be_sad()

BTW I suggested that we keep with the 79.

Oh I thought you suggested single long lines.

None of the things have any bearing on dabo which I contributed to before solidifying my style. I finally feel like I'm set, but who knows?

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to