Re: PEP8 compliance and exception messages ?
- From: Andreas Waldenburger <usenot@xxxxxxxxxxxxxxxx>
- Date: Mon, 6 Dec 2010 00:22:49 -0500
On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert <clp2@xxxxxxxxxxxx> wrote:
On Sun, Dec 5, 2010 at 7:40 PM, shearichard <shearichard@xxxxxxxxx>But isn't explicit string literal concatenation better than implicit string literal concatenation?
wrote:
Hi - PEP8 says lines should not exceed 79 characters in length
( http://www.python.org/dev/peps/pep-0008/ ).
So if you've got some code that looks like this :
raise fooMod.fooException("Some message which is quite long")
... and assuming a certain amount of indenting you're going to break
that guideline.
[etc.]
Use implicit string literal concatenation:
[...]
.... sorry ...
On a more serious note:
Alternatively, you could disregard PEP 8 on this point on the groundsMaybe, but it's not outmoded.
that the 79/80 characters per line limit is outdated.
/W
--
To reach me via email, replace INVALID with the country code of my home
country. But if you spam me, I'll be one sour Kraut.
.
- Follow-Ups:
- Re: PEP8 compliance and exception messages ?
- From: Andreas Waldenburger
- Re: PEP8 compliance and exception messages ?
- From: Tim Harig
- Re: PEP8 compliance and exception messages ?
- References:
- PEP8 compliance and exception messages ?
- From: shearichard
- Re: PEP8 compliance and exception messages ?
- From: Chris Rebert
- PEP8 compliance and exception messages ?
- Prev by Date: Re: PEP8 compliance and exception messages ?
- Next by Date: Re: PEP8 compliance and exception messages ?
- Previous by thread: Re: PEP8 compliance and exception messages ?
- Next by thread: Re: PEP8 compliance and exception messages ?
- Index(es):