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
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 triple quoted
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. Steinbachal...@start.no 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
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. Steinbachal...@start.no wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python have triple-quoted string when you want to include large amount
of text;
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. Steinbachal...@start.no wrote:
On 28.04.2010 18:54, * Lie Ryan:
Python have triple-quoted string when you
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. Steinbachal...@start.nowrote:
On 28.04.2010 18:54, * Lie Ryan:
Python
On 2010-04-30, Lie Ryan lie.1...@gmail.com 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
On 05/01/10 04:08, Neil Cerutti wrote:
On 2010-04-30, Lie Ryan lie.1...@gmail.com 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
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 string to
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 breaks I
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
On 30.04.2010 21:40, * Lie Ryan:
On 05/01/10 04:08, Neil Cerutti wrote:
On 2010-04-30, Lie Ryanlie.1...@gmail.com 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
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 various escapes
for quotes
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).
No, the implicit
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
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.
--
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
writing a
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 indentation and
On Apr 28, 11:16 am, Alf P. Steinbach al...@start.no 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
On 30.04.2010 01:29, * Carl Banks:
On Apr 28, 11:16 am, Alf P. Steinbachal...@start.no 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
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.
I don't agree.
On 27-Apr-10 22:31 PM, Brendan Abel wrote:
On Apr 27, 7:20 pm, goldtechgoldt...@worldpost.com 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):
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
goldtechgoldt...@worldpost.com wrote in message
news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com...
On Apr 27, 7:31
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
goldtechgoldt...@worldpost.com wrote in message
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 it, and
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 quoted
Lie Ryan lie.1...@gmail.com 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
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
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 interactive input, line 1, in module
NameError: name 'd' is not defined
--
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 interactive input, line 1, in module
NameError: name 'd' is not defined
Use a
On Apr 27, 7:20 pm, goldtech goldt...@worldpost.com 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 interactive input, line 1, in
On Apr 27, 7:31 pm, Brendan Abel 007bren...@gmail.com wrote:
On Apr 27, 7:20 pm, goldtech goldt...@worldpost.com 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:33 pm, MRAB pyt...@mrabarnett.plus.com 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 interactive
On Tue, Apr 27, 2010 at 10:51 PM, goldtech goldt...@worldpost.com wrote:
On Apr 27, 7:33 pm, MRAB pyt...@mrabarnett.plus.com 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.
On Tue, Apr 27, 2010 at 10:51 PM, goldtech goldt...@worldpost.com wrote:
On Apr 27, 7:33 pm, MRAB pyt...@mrabarnett.plus.com 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.
goldtech wrote:
On Apr 27, 7:33 pm, MRAB pyt...@mrabarnett.plus.com 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
goldtech goldt...@worldpost.com 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
Use triple quote:
d = this is
a sample text
which does
not mean
anything
goldtech goldt...@worldpost.com 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
On 28.04.2010 07:11, * Sagar K:
Use triple quote:
d = this is
a sample text
which does
not mean
anything
goldtechgoldt...@worldpost.com wrote in message
news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com...
On Apr 27, 7:31 pm, Brendan Abel007bren...@gmail.com wrote:
On
39 matches
Mail list logo