'concatenating''strings'

Daniel Fackrell unlearned at DELETETHIS.learn2think.org
Thu Aug 8 20:27:12 CEST 2002


"Will Stuyvesant" <hwlgw at hotmail.com> wrote in message
news:cb035744.0208081004.589ed61 at posting.google.com...
> Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on
> win32
> Type "copyright", "credits" or "license" for more information.
> IDLE 0.8 -- press F1 for help
> >>> '1''2'
> '12'
> >>> '1''2''3'
> '123'
> >>> '1'''
> '1'
> >>> '''3'
> KeyboardInterrupt
> >>> # that did hang with the cursor on the next line so I had to press
> CTRL-c

Not quite what you think.  Remember that Python supports triple-quoted
strings.  It's still waiting for the end of the string, not hung as it may
have appeared.

You might check to see that the secondary prompt '...' has not been
disabled, as it should have appeared to indicate continuation.
--
Daniel Fackrell (unlearned at learn2think.org)
When we attempt the impossible, we can experience true growth.





More information about the Python-list mailing list