I see. Thanks!<br><br clear="all">Ching-Yun "Xavier" Ho, Technical Artist<br><br>Contact Information<br>Mobile: (+61) 04 3335 4748<br>Skype ID: SpaXe85<br>Email: <a href="mailto:contact@xavierho.com">contact@xavierho.com</a><br>
Website: <a href="http://xavierho.com/">http://xavierho.com/</a><br>
<br><br><div class="gmail_quote">On Tue, Jul 14, 2009 at 11:20 PM, Jochen Schulz <span dir="ltr"><<a href="mailto:ml@well-adjusted.de">ml@well-adjusted.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Xavier Ho:<br>
<div class="im">><br>
> Why doesn't the second output print [1, 2, 3, .... , 7, 8, 9] ?<br>
</div>-- snip<br>
<div class="im">> print a.n.extend([6, 7, 8, 9])<br>
<br>
</div>extend doesn't fail. It just returns None and extends the list in place.<br>
<br>
In [1]: l = [1, 2, 3]<br>
<br>
In [2]: l.extend([4, 5, 6])<br>
<br>
In [3]: l<br>
Out[3]: [1, 2, 3, 4, 5, 6]<br>
<br>
<br>
J.<br>
<font color="#888888">--<br>
When I get home from the supermarket I don't know what to do with all the<br>
plastic.<br>
[Agree]   [Disagree]<br>
                 <<a href="http://www.slowlydownward.com/NODATA/data_enter2.html" target="_blank">http://www.slowlydownward.com/NODATA/data_enter2.html</a>><br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
<br>
iEYEARECAAYFAkpcoiwACgkQ+AfZydWK2zmchgCfZjRCOGTa0OZ1Q045sCLZfpvD<br>
EIEAnjJ8/uNwPYFfCsGNbQIDd5+LnkbA<br>
=fCdV<br>
-----END PGP SIGNATURE-----<br>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>