This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients loewis
Date 2009-09-13.08:50:38
SpamBayes Score 3.2315127e-06
Marked as misclassified No
Message-id <1252831841.16.0.893335369907.issue6899@psf.upfronthosting.co.za>
In-reply-to
Content
In Base.replace, the method checks that self.parent is not None - 
however, it (unfortunately), breaks this very property itself if self is 
new, or self in new.

In particular, some fixers return node from transform if they don't want 
to do anything. In that case, self.parent gets set to None, even though 
new (which is self) is still connected to the tree.

This patch
a) short-cuts the case that self is new
b) arranges to set parent of the new nodes only after clearing parent of 
self
History
Date User Action Args
2009-09-13 08:50:41loewissetrecipients: + loewis
2009-09-13 08:50:41loewissetmessageid: <1252831841.16.0.893335369907.issue6899@psf.upfronthosting.co.za>
2009-09-13 08:50:39loewislinkissue6899 messages
2009-09-13 08:50:38loewiscreate