Re: copying objects
Will Davis <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
Raphael Crawford-Marks wrote:
>Is there an easy way to copy objects?
>
>I need to copy a list of objects, and copylist only gives me a new list with the
>same objects. Do I need to create a custom method for this, or is there a
>built-in way of doing it?
>
>Thanks,
>
>Raphael
>
>
>
>
list (list).
newlist (list).
item (object).
newitem (object).
foreach item in list: {
newitem = item.
push newitem onto newlist.
}
Dunno if there's a custom list-copy method, but the code above should do it.
_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve