Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.03; 'syntax': 0.03; 'subject:Python': 0.05; 'python': 0.09; 'indication': 0.09; 'it;': 0.09; 'structure,': 0.09; 'dec': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'node,': 0.16; 'printf': 0.16; 'wrote:': 0.17; 'shape': 0.17; 'thu,': 0.17; 'typing': 0.17; 'code,': 0.18; "i'd": 0.22; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'c++': 0.27; 'tree': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; "i'm": 0.29; 'saves': 0.30; 'function': 0.30; 'system,': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'data,': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'add': 0.36; 'but': 0.36; 'child': 0.36; 'visual': 0.36; 'quite': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'easily': 0.39; 'header:Received:5': 0.40; 'different': 0.63; 'gave': 0.65; '20,': 0.65; 'where:': 0.65; 'afraid': 0.66; 'today': 0.67; 'reasoning': 0.91 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:content-transfer-encoding; bh=/nsrRB2vB4pR4LIdbSwpxYvmlnmtzBg1yMrCNwQF4y8=; b=WM4O2pccbE/2J45q6GITb1Nx1VOn76a4oEfRum0/FvFpoCPjidZRPWTBjQGR6j1Zm4 KtcQ4J/vDN4eENUuB8BVC5CQMTbJvneAEBvfcuN7g8EsVWw0VYWu2anOxRi2ozhUxOLp wSe51XhdjjvZwniQY5sCTzuvuVABXX7ZGlCmbdkO+EdDwl3t/DlvuVYQi2HdIl83Y/o9 CiUrD+OtfjI3Pon1oPCmoeVjEIcKgU3TfFUFmis/X/3YR3jDPaXddcb8eftkYSCCtGs0 lQOaBhXhXVhWMS8OL9FatSftSfKlHdKJgdxq8kJEE3fRw0aN+e3Z8YS19ahB7in1lT6H /dVg== MIME-Version: 1.0 In-Reply-To: <9122ba06-bc02-42a3-84a6-568c3fab4598@googlegroups.com> References: <9122ba06-bc02-42a3-84a6-568c3fab4598@googlegroups.com> Date: Thu, 20 Dec 2012 20:56:25 +1100 Subject: Re: Brython - Python in the browser From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355997388 news.xs4all.nl 6888 [2001:888:2000:d::a6]:50457 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35186 On Thu, Dec 20, 2012 at 8:37 PM, Pierre Quentel wrote: > I'm afraid I am going to disagree. The document is a tree structure, and = today Python doesn't have a syntax for easily manipulating trees. To add a = child to a node, using an operator instead of a function call saves a lot o= f typing ; <=3D looks like a left arrow, which is a visual indication of th= e meaning "receive as child". |=3D doesn't have this arrow shape This is the reasoning that gave us the C++ stdio system, where: cout << "Hello, world!\n"; is the way to make console output. Quite frankly, I don't like it; when I write C++ code, I use printf same as in C. I'd much rather work with methods than with operators that try to look like the flowing of data, but actually have a quite different meaning. ChrisA