Why can't I have two different link objects? I create _link and _link2 as empty objects.
When I do this:
_link2 = _link,
it just creates alias _link2 to link object. Same object have 2 aliases _link2 and _link. Is there a way to copy the content of _link to _link2?
When I do this: _link2 = _link2.append("adding stuff")
why does _link2 become "None"
My code:
_link = []
site_url = "http://www.mysite.com/"
_link.append(site_url)
_link2 = []
_link2 = _link
_link2 = _link2.append("adding stuff")
print _link
print _link2
Output:
None