In <j1hl5v$9gj$1...@reader1.panix.com> John Gordon <gor...@panix.com> writes:

> In <mailman.1937.1312573077.1164.python-l...@python.org> Jack Bates 
> <ms...@freezone.co.uk> writes:

> > I have two objects, and I want to replace all references to the first
> > object - everywhere - with references to the second object. What can I
> > try?

> The simplest answer to your question is to assign object2 to object1

I think I have that backwards, but the intent should be clear:

  object1 = object2

  # many references to object1 follow, which will now reference object2

-- 
John Gordon                   A is for Amy, who fell down the stairs
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to