➜

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.

作者 loewis
收信人 loewis
日期 2009-09-13.08:50:38
SpamBayes Score 3.2315127e-06
Marked as misclassified 否
Message-id <1252831841.16.0.893335369907.issue6899@psf.upfronthosting.co.za>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2009-09-13 08:50:41loewis修改recipients: + loewis
2009-09-13 08:50:41loewis修改messageid: <1252831841.16.0.893335369907.issue6899@psf.upfronthosting.co.za>
2009-09-13 08:50:39loewis链接issue6899 messages
2009-09-13 08:50:38loewis创建