[Tutor] Re: working code for adding line numbers -- request for criticism

Lloyd Kvam pythonTutor at venix.com
Sun Apr 18 22:30:12 EDT 2004


One more remark about strings in source code.  Successive string
literals in python source are automatically concatenated.
s = "abc" "def" # results in "abcdef"

The successive string literals can be on different lines either by using
the line continuation (\ at end of the line) or because the strings are
in a bracketed expression and python will automatically continue the
lines
s = ("abc"
"def") # also results in "abcdef"

I usually rely on this feature when writing long SQL statements.

On Sun, 2004-04-18 at 14:00, Brian van den Broek wrote:
> Hi All,
(snipped)

> Best,
> 
> Brian vdB
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-- 

Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice:	603-653-8139
fax:	801-459-9582
-- 

Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice:	603-653-8139
fax:	801-459-9582




More information about the Tutor mailing list