Xavier Ho:
>
> Why doesn't the second output print [1, 2, 3, .... , 7, 8, 9] ?
-- snip
> print a.n.extend([6, 7, 8, 9])

extend doesn't fail. It just returns None and extends the list in place.

In [1]: l = [1, 2, 3]

In [2]: l.extend([4, 5, 6])

In [3]: l
Out[3]: [1, 2, 3, 4, 5, 6]


J.
-- 
When I get home from the supermarket I don't know what to do with all the
plastic.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to