Well, thats because python, to save memory and processing time with lists, passes by reference, not by copy.
The way to do what you want is this:
>>> a=[[5]]
>>> b=[a[0][:]]
>>> a[0][0]=3
>>> b
[[5]]
However, if you are going to be passing around lists, and want copies to modify, then do this:
b=a[:] to do a one-level copy of the list's contents. Any lists in the list, as above, will also be passed by reference, not copy.
If you do have nested lists, then take a look at the copy module.
Oh, gee, maybe if you do some research in the field of evolutionary biology, you may see that they in fact DO acknowledge their weak points, and they ARE studying them, to solve it. The problem with ID/Creationism, is that it prevents critical thinking.
"Tell me, Bob, why are our vegetable fields not reacting right to this fertilizer you invented?"
"Oh, God did it. I took some manure, prayed over it, and then when I did tests, I kept only the test that proved my prayed-over manure works better than regular manure!"
"Bob, you're fired."
ID/Creationism is NOT science. Anything that prevents proper, critical thought, is not science. Besides, your analogy is flawed. The right theory to go with special relativity is Quantum Mechanics, since it explains what happens when Special Relativity does not apply(which is on the micro-scale. Special Rel. applies on the macro scale). String Theory is still just a hypothesis with a bunch of math behind it.
Go read http://www.talkorigins.org/ before you talk about something you don't understand.
My business partner and I have been talking about stuff exactly like this, but I never knew companies were actually doing this. It always seemed a major problem that companies must be devoted to profit... and that leads to issues, like Microsoft changing their billing practices, etc. When a company is the undisputed leader in their niche, they had to do something to increase their profits. Usually thats when companies do stupid things like use the RIAA, put spyware on CDs, etc. So its actually bad for a company to focus on profits. Oh well, still too many greedy people.
Well, thats because python, to save memory and processing time with lists, passes by reference, not by copy. The way to do what you want is this: >>> a=[[5]] >>> b=[a[0][:]] >>> a[0][0]=3 >>> b [[5]] However, if you are going to be passing around lists, and want copies to modify, then do this: b=a[:] to do a one-level copy of the list's contents. Any lists in the list, as above, will also be passed by reference, not copy. If you do have nested lists, then take a look at the copy module.
Oh, gee, maybe if you do some research in the field of evolutionary biology, you may see that they in fact DO acknowledge their weak points, and they ARE studying them, to solve it. The problem with ID/Creationism, is that it prevents critical thinking. "Tell me, Bob, why are our vegetable fields not reacting right to this fertilizer you invented?" "Oh, God did it. I took some manure, prayed over it, and then when I did tests, I kept only the test that proved my prayed-over manure works better than regular manure!" "Bob, you're fired." ID/Creationism is NOT science. Anything that prevents proper, critical thought, is not science. Besides, your analogy is flawed. The right theory to go with special relativity is Quantum Mechanics, since it explains what happens when Special Relativity does not apply(which is on the micro-scale. Special Rel. applies on the macro scale). String Theory is still just a hypothesis with a bunch of math behind it. Go read http://www.talkorigins.org/ before you talk about something you don't understand.
Gee... perhaps thats the problem? Check this out: We need a new path to liquidity
My business partner and I have been talking about stuff exactly like this, but I never knew companies were actually doing this. It always seemed a major problem that companies must be devoted to profit... and that leads to issues, like Microsoft changing their billing practices, etc. When a company is the undisputed leader in their niche, they had to do something to increase their profits. Usually thats when companies do stupid things like use the RIAA, put spyware on CDs, etc. So its actually bad for a company to focus on profits. Oh well, still too many greedy people.