I'm a bit late to the discussion, but remembering that raise takes an
expression, I can break it up like this:
>>> raise (
... Exception (
... "Long "
... "exception "
... "text."
... )
... )
Traceback (most recent call last):
File "", line 3, in
Exception: Long exception text
Then, you can in
On Dec 7, 9:17 am, Andreas Waldenburger
wrote:
> On Mon, 6 Dec 2010 00:22:49 -0500 Andreas Waldenburger
> wrote:
>
>
>
> > On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert
> > wrote:
>
> > > On Sun, Dec 5, 2010 at 7:40 PM, shearichard
> > > wrote:
> > > > Hi - PEP8 says lines should not exceed 7
On Dec 6, 6:21 pm, Ben Finney wrote:
> shearichard writes:
> > 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")
On Mon, 6 Dec 2010 00:22:49 -0500 Andreas Waldenburger
wrote:
> On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert
> wrote:
>
> > On Sun, Dec 5, 2010 at 7:40 PM, shearichard
> > wrote:
> > > Hi - PEP8 says lines should not exceed 79 characters in length
> > > ( http://www.python.org/dev/peps/pep-
On Mon, 06 Dec 2010 06:15:06 +, Tim Harig wrote:
>> But isn't explicit string literal concatenation better than implicit
>> string literal concatenation?
>
> So add the "+", it really doesn't change it much.
Perhaps not *much*, but it *may* change it a bit.
Implicit concatenation of literal
On 2010-12-06, Andreas Waldenburger wrote:
> On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert wrote:
>
>> On Sun, Dec 5, 2010 at 7:40 PM, shearichard
>> wrote:
>> > Hi - PEP8 says lines should not exceed 79 characters in length
>> > ( http://www.python.org/dev/peps/pep-0008/ ).
>> >
>> > So if you
On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert wrote:
> On Sun, Dec 5, 2010 at 7:40 PM, shearichard
> 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 :
> >
> > rais
shearichard writes:
> 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")
PEP 8 also says those names are poorly chos
On 06/12/2010 03:40, shearichard 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
On Sun, Dec 5, 2010 at 7:40 PM, shearichard 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 as
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 g
11 matches
Mail list logo