On 11/23/2016 03:09 AM, Ned Batchelder wrote:
[snip...]
Or using the new string formatting syntax:

msg = '{},{},{}:{}'.format(*item)

The *item in the format() unpacks the tuple.


"new" == "Introduced in 2.6, available since 2008" :)

--Ned.


Of course.  I probably should have said "newer" or "other".    :-)

--
     -=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to