Brython - Python in the browser

Chris Angelico rosuav at gmail.com
Sat Dec 22 01:08:19 CET 2012


On Sat, Dec 22, 2012 at 10:57 AM, Ian Kelly <ian.g.kelly at gmail.com> 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



More information about the Python-list mailing list