goldtech schrieb:
Thank you to posters for help to my question. Seems I had trouble with
triple quotes strings in the PythonWin shell. But using the Idle shell
things work as expected. But this is probably another issue...any way,
w/Idle's shell I got the "action" regarding multiline strings I
ex
On 05/01/10 07:54, Alf P. Steinbach wrote:
>
You'd put a 5K line in your source code, + you're working with text
wrapping in your editor.
>>>
>>> In the other hand, you'd put a 5K line in your source code, + you're
>>> writing, debugging, and running a script to wrap and put vari
On 30.04.2010 21:40, * Lie Ryan:
On 05/01/10 04:08, Neil Cerutti wrote:
On 2010-04-30, Lie Ryan wrote:
Use triple-quoted, let them flow, done. I've never heard of any
text editor in current use without text wrapping capability,
even Notepad has it. And if I've got 5k of text in source code
wi
On 30.04.2010 21:46, * Lie Ryan:
On 05/01/10 05:43, Lie Ryan wrote:
On 05/01/10 03:56, Alf P. Steinbach wrote:
Use triple-quoted, let them flow, done. I've never heard of any text
editor in current use without text wrapping capability, even Notepad has
it. And if I've got 5k of text in source
On 05/01/10 05:43, Lie Ryan wrote:
> On 05/01/10 03:56, Alf P. Steinbach wrote:
>>>
>>> Use triple-quoted, let them flow, done. I've never heard of any text
>>> editor in current use without text wrapping capability, even Notepad has
>>> it. And if I've got 5k of text in source code without line b
On 05/01/10 03:56, Alf P. Steinbach wrote:
>>
>> Use triple-quoted, let them flow, done. I've never heard of any text
>> editor in current use without text wrapping capability, even Notepad has
>> it. And if I've got 5k of text in source code without line breaks I
>> wouldn't want that silly strin
On 05/01/10 04:08, Neil Cerutti wrote:
> On 2010-04-30, Lie Ryan wrote:
>> Use triple-quoted, let them flow, done. I've never heard of any
>> text editor in current use without text wrapping capability,
>> even Notepad has it. And if I've got 5k of text in source code
>> without line breaks I wou
On 2010-04-30, Lie Ryan wrote:
> Use triple-quoted, let them flow, done. I've never heard of any
> text editor in current use without text wrapping capability,
> even Notepad has it. And if I've got 5k of text in source code
> without line breaks I wouldn't want that silly string to
> disturb my
On 30.04.2010 19:31, * Lie Ryan:
On 05/01/10 00:01, Alf P. Steinbach wrote:
On 30.04.2010 12:51, * Lie Ryan:
On 04/30/10 12:07, Alf P. Steinbach wrote:
On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, "Alf P. Steinbach"wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python have triple-
On 05/01/10 00:01, Alf P. Steinbach wrote:
> On 30.04.2010 12:51, * Lie Ryan:
>> On 04/30/10 12:07, Alf P. Steinbach wrote:
>>> On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, "Alf P. Steinbach" wrote:
> On 28.04.2010 18:54, * Lie Ryan:
>> Python have triple-quoted strin
On 30.04.2010 12:51, * Lie Ryan:
On 04/30/10 12:07, Alf P. Steinbach wrote:
On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, "Alf P. Steinbach" wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python have triple-quoted string when you want to include large amount
of text;
Yes, that's been
On 04/30/10 12:07, Alf P. Steinbach wrote:
> On 30.04.2010 01:29, * Carl Banks:
>> On Apr 28, 11:16 am, "Alf P. Steinbach" wrote:
>>> On 28.04.2010 18:54, * Lie Ryan:
>>
Python have triple-quoted string when you want to include large amount
of text;
>>>
>>> Yes, that's been mentioned ump
On 04/30/10 13:21, Steven D'Aprano wrote:
> On Fri, 30 Apr 2010 05:41:26 +1000, Lie Ryan wrote:
>
>> On 04/29/10 20:40, Gregory Ewing wrote:
>>> Lie Ryan wrote:
No, the implicit concatenation is there because Python didn't always
have triple quoted string. Nowadays it's an artifact and t
On Fri, 30 Apr 2010 05:41:26 +1000, Lie Ryan wrote:
> On 04/29/10 20:40, Gregory Ewing wrote:
>> Lie Ryan wrote:
>>> No, the implicit concatenation is there because Python didn't always
>>> have triple quoted string. Nowadays it's an artifact and triple quoted
>>> string is much preferred.
>>
>>
On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, "Alf P. Steinbach" wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python have triple-quoted string when you want to include large amount
of text;
Yes, that's been mentioned umpteen times in this thread, including the *very
first* quoted sent
On Apr 28, 11:16 am, "Alf P. Steinbach" wrote:
> On 28.04.2010 18:54, * Lie Ryan:
> > Python have triple-quoted string when you want to include large amount
> > of text;
>
> Yes, that's been mentioned umpteen times in this thread, including the *very
> first* quoted sentence above.
>
> It's IMHO
On 04/29/10 16:34, Steven D'Aprano wrote:
> On Thu, 29 Apr 2010 02:16:46 +0100, MRAB wrote:
>
>> Steven D'Aprano wrote:
>>> On Thu, 29 Apr 2010 06:17:42 +1000, Lie Ryan wrote:
>>>
> Consider that the concatenation language feature probably is there
> because it's useful (e.g. it preserves
On 04/29/10 20:40, Gregory Ewing wrote:
> Lie Ryan wrote:
>> No, the implicit concatenation is there because Python didn't always
>> have triple quoted string. Nowadays it's an artifact and triple quoted
>> string is much preferred.
>
> I don't agree. I often use implicit concatenation when I'm
>
Thank you to posters for help to my question. Seems I had trouble with
triple quotes strings in the PythonWin shell. But using the Idle shell
things work as expected. But this is probably another issue...any way,
w/Idle's shell I got the "action" regarding multiline strings I
expected.
--
http://m
Lie Ryan wrote:
No, the implicit concatenation is there because Python didn't always
have triple quoted string. Nowadays it's an artifact and triple quoted
string is much preferred.
I don't agree. I often use implicit concatenation when I'm
writing a format string that won't fit on one source l
On Thu, 29 Apr 2010 02:16:46 +0100, MRAB wrote:
> Steven D'Aprano wrote:
>> On Thu, 29 Apr 2010 06:17:42 +1000, Lie Ryan wrote:
>>
Consider that the concatenation language feature probably is there
because it's useful (e.g. it preserves indentation and allows per
line comments).
>>
Steven D'Aprano wrote:
On Thu, 29 Apr 2010 06:17:42 +1000, Lie Ryan wrote:
Consider that the concatenation language feature probably is there
because it's useful (e.g. it preserves indentation and allows per line
comments).
No, the implicit concatenation is there because Python didn't always
h
Lie Ryan writes:
> Python have triple-quoted string when you want to include large amount
> of text; there is no need to split the string up manually or even
> scriptically.
You can even have multi-line string literals that have correct
indentation in the code, but strip that indentation at runt
On Thu, 29 Apr 2010 06:17:42 +1000, Lie Ryan wrote:
>> Consider that the concatenation language feature probably is there
>> because it's useful (e.g. it preserves indentation and allows per line
>> comments).
>
> No, the implicit concatenation is there because Python didn't always
> have triple
On 04/29/10 04:16, Alf P. Steinbach wrote:
> On 28.04.2010 18:54, * Lie Ryan:
>> On 04/28/10 15:34, Alf P. Steinbach wrote:
>
> Yes, that's been mentioned umpteen times in this thread, including the
> *very first* quoted sentence above.
>
> It's IMHO sort of needless to repeat that after quoting
On 28.04.2010 18:54, * Lie Ryan:
On 04/28/10 15:34, Alf P. Steinbach wrote:
On 28.04.2010 07:11, * Sagar K:
Use triple quote:
d = """ this is
a sample text
which does
not mean
anything"""
"goldtech" wrote in message
news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com...
On
On 04/28/10 15:34, Alf P. Steinbach wrote:
> On 28.04.2010 07:11, * Sagar K:
>> Use triple quote:
>> d = """ this is
>> a sample text
>> which does
>> not mean
>> anything"""
>>
>> "goldtech" wrote in message
>> news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com...
>> On Apr 27
On 27-Apr-10 22:31 PM, Brendan Abel wrote:
On Apr 27, 7:20 pm, goldtech wrote:
Hi,
This is undoubtedly a newbie question. How doI assign variables
multiline strings? If I try this i get what's cited below. Thanks.
d="d
d"
d
Traceback (most recent call last):
File "", line 1, i
On 28.04.2010 07:11, * Sagar K:
Use triple quote:
d = """ this is
a sample text
which does
not mean
anything"""
"goldtech" wrote in message
news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com...
On Apr 27, 7:31 pm, Brendan Abel<007bren...@gmail.com> wrote:
On Apr 27, 7:20 p
Use triple quote:
d = """ this is
a sample text
which does
not mean
anything"""
"goldtech" wrote in message
news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com...
On Apr 27, 7:31 pm, Brendan Abel <007bren...@gmail.com> wrote:
> On Apr 27, 7:20 pm, goldtech wrote:
>
> > Hi,
>
goldtech writes:
> Only seems to work when there's a '... ' on the 2nd line.
You seem to be confused by the presentation of the interactive
interpreter. That text is a prompt.
> I need a way to assign large blocks of text to a variable w/out
> special formatting.
That's what triple-quoted stri
goldtech wrote:
On Apr 27, 7:33 pm, MRAB wrote:
goldtech wrote:
Hi,
This is undoubtedly a newbie question. How doI assign variables
multiline strings? If I try this i get what's cited below. Thanks.
d="d
d"
d
Traceback (most recent call last):
File "", line 1, in
NameError: name
On Tue, Apr 27, 2010 at 10:51 PM, goldtech wrote:
> On Apr 27, 7:33 pm, MRAB wrote:
>> goldtech wrote:
>> > Hi,
>>
>> > This is undoubtedly a newbie question. How doI assign variables
>> > multiline strings? If I try this i get what's cited below. Thanks.
>>
>> d="d
>> > d"
>> d
On Tue, Apr 27, 2010 at 10:51 PM, goldtech wrote:
> On Apr 27, 7:33 pm, MRAB wrote:
> > goldtech wrote:
> > > Hi,
> >
> > > This is undoubtedly a newbie question. How doI assign variables
> > > multiline strings? If I try this i get what's cited below. Thanks.
> >
> > d="d
> > > d"
On Apr 27, 7:33 pm, MRAB wrote:
> goldtech wrote:
> > Hi,
>
> > This is undoubtedly a newbie question. How doI assign variables
> > multiline strings? If I try this i get what's cited below. Thanks.
>
> d="d
> > d"
> d
> > Traceback (most recent call last):
> > File "", line 1,
On Apr 27, 7:31 pm, Brendan Abel <007bren...@gmail.com> wrote:
> On Apr 27, 7:20 pm, goldtech wrote:
>
> > Hi,
>
> > This is undoubtedly a newbie question. How doI assign variables
> > multiline strings? If I try this i get what's cited below. Thanks.
>
> > >>> d="d
> > d"
> > >>> d
>
> >
On Apr 27, 7:20 pm, goldtech wrote:
> Hi,
>
> This is undoubtedly a newbie question. How doI assign variables
> multiline strings? If I try this i get what's cited below. Thanks.
>
> >>> d="d
> d"
> >>> d
>
> Traceback (most recent call last):
> File "", line 1, in
> NameError: name 'd'
goldtech wrote:
Hi,
This is undoubtedly a newbie question. How doI assign variables
multiline strings? If I try this i get what's cited below. Thanks.
d="d
d"
d
Traceback (most recent call last):
File "", line 1, in
NameError: name 'd' is not defined
Use a triple-quoted string
Hi,
This is undoubtedly a newbie question. How doI assign variables
multiline strings? If I try this i get what's cited below. Thanks.
>>> d="d
d"
>>> d
Traceback (most recent call last):
File "", line 1, in
NameError: name 'd' is not defined
--
http://mail.python.org/mailman/listinf
39 matches
Mail list logo