-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Stan,
I think I saw one question you asked that hasn't been answered yet: Stan Schymanski wrote: <snip> > > If I construct a list out of two other lists, I usually don't > expect the original lists to change if I manipulate the resulting > list. How can I break such links? <snip> The way I usually do this is: sage: L = [1, 2, 3] sage: LL = L[:] This makes LL a copy of L instead of reference to it. As such, I can manipulate the two completely independently. Best, Jason -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJEM7b8gPPTTURhZkRApk4AJ9672d9EekPoCdG7Z0qh/LLsPYXSwCfd1Ga 652K4qgYDuKgabqmz6keAYk= =Y3HM -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
