From: David G. <go...@py...> - 2010-07-03 13:16:27
|
On Sat, Jul 3, 2010 at 04:14, Georg Brandl <g.b...@gm...> wrote: > Am 02.07.2010 15:56, schrieb David Goodger: >> I can't think of any adverse effects of the proposed change, but >> before "blessing" it: what is the purpose of the proposed change? > > For one, completeness -- I would argue that the rawsource of a node is > part of it and don't see why it shouldn't be deepcopied. > > The actual case where I need it is that in Sphinx I compare the rawsource > of a literal block with its text content to determine if it is a parsed > literal (in which case it can't be syntax-highlighted easily). And I need > to do this with a deepcopied nodetree, because when I put together trees > from different files, I deepcopy them. Sounds reasonable. No objection from me. -- David Goodger <http://python.net/~goodger> |