Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; '22,': 0.09; 'received:mail-vb0-f46.google.com': 0.09; 'dec': 0.15; 'sat,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hierarchy': 0.16; 'node.': 0.16; 'nodes': 0.16; 'wrote:': 0.17; 'string,': 0.17; 'appears': 0.18; 'code,': 0.18; 'received:209.85.212.46': 0.18; 'work,': 0.22; 'seems': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'object,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'container': 0.29; 'gets': 0.32; 'ordered': 0.33; 'handle': 0.33; 'to:addr:python-list': 0.33; '(with': 0.33; 'equal': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'received:209.85': 0.35; 'child': 0.36; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'situation': 0.62; 'skip:$ 10': 0.66; 'sum': 0.66; 'peers,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8NFSItyWNspb2m3kp5nEuFpz1MSlDKuoxKnl8ZnYoTs=; b=vW4Ygl1YgofHEu4zg/iorZtkKINx69vBnovQJrmGN65JHQQACJySDZRYmGIkdLvXbl TqQhMqliavHH8PRcAv0hP2sax3VrhN8u0XV7l00166EGhM4kbq1sTLt8tBHKLGJ0LB9k bhqdWTlBxOR9XycIL2VTOlRzztzJt/UhSyqaLRTgYBccL6yLXrWXhbddwDd7aENInRz3 jTL1m+IS72TjEN6jO0XvgfGhnRZBYiXKBpToPzudKkBJTPgqcYo73cI9b3GgD5tlI4TT yYrKje8KYKZ7Y+Irr1MoqY2SflsP/yOdDqgKBoXbgjenTkwnoPV4YivMQAebU03v7HUL 1tyA== MIME-Version: 1.0 In-Reply-To: References: <50D256B3.4070709@udel.edu> <96edb672-dabd-4ab8-9e7c-3fa7f4a91437@googlegroups.com> <44335f22-555a-4806-b24a-7d4cb1d8e529@googlegroups.com> <4ddee631-b5b5-4cb4-82b0-00ca403b773e@googlegroups.com> Date: Sat, 22 Dec 2012 11:08:19 +1100 Subject: Re: Brython - Python in the browser From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356134903 news.xs4all.nl 6903 [2001:888:2000:d::a6]:37361 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35331 On Sat, Dec 22, 2012 at 10:57 AM, Ian Kelly wrote: > From the code, it appears that adding two nodes together *actually* > returns a $AbstractTag object, which seems to be just a container for > a list of child nodes with no parent, that automagically gets removed > from the hierarchy when appended to another node. That actually makes good sense. The sum of two nodes is an ordered pair of peers, which will be added sequentially to the same parent. For this to work, *every* situation needs to be able to handle (with equal ease) a string, an $AbstractTag, or a node. ChrisA