[Tutor] Alternatives to append() for "growing" a list
Danny Yoo
dyoo at hashcollision.org
Mon Dec 2 21:32:21 CET 2013
>
>
> I was told by someone (as a comment) that a code snippet such as this
> "would make Pythonistas talk my ear off about how evil the append()"
> function is:
>
>
I think this thread demonstrates: we don't need an excuse to talk your ears
off. :P
Using append() is fine.
If anything, the comment might be referring to an issue with appending
strings in a naive way. But without further information, can't say for
sure. If you can get more information about what your friend was talking
about, that would be helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131202/738786af/attachment.html>
More information about the Tutor
mailing list