Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'represents': 0.05; 'string': 0.09; 'impose': 0.09; 'semantic': 0.09; 'trees': 0.09; 'used.': 0.09; 'ah,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nodes': 0.16; 'quirks': 0.16; 'roy': 0.16; 'subject:GUI': 0.16; 'subject:library': 0.16; 'wrote:': 0.18; 'saying': 0.22; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'xml': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'you?': 0.31; 'guess': 0.33; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; "i'll": 0.36; 'wrong': 0.37; 'too': 0.37; 'list': 0.37; 'received:209': 0.37; 'represent': 0.38; 'to:addr:python- list': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'you.': 0.62; 'places': 0.64; 'smith': 0.68; 'wish': 0.70; 'to,': 0.72; 'article': 0.77; 'protocol,': 0.84; 'labels.': 0.93; '2013': 0.98 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=Hp9CkebFSXwN6zMbVHns8MLylnDH0eCri41UpOJhdog=; b=Vi85+GdyqxtJgwkyxYM7No8uo9k/L0GmuGMahDj1upzTZ3Ams3SF5qgUe41Z9/RIDF qKJ+V+QjG95XkWg99gEobVpa33TV8AOgYp+VsJ5WcTncC/eNTepYWqwemsCPxpydj/A8 n5uAObT2f9cj2iYLtpnb07E69+ZdTALfFXBopl8edGfEO2bJTaP3bgGa8iasFAR11Fgl jM0YpEeYMVfik8D/LIi9fjhx7cX+/3FJrI3DkiC481Z5bcExMa7g6nIF2aMLZZLY80+S B79Z5r8M0+1lBL4FOYC47la8Q1v0PUK2k2orWdghOIFOPnYrNqORJPqcqvlUTsM+7Moa 6VmA== MIME-Version: 1.0 X-Received: by 10.58.116.229 with SMTP id jz5mr12136211veb.14.1369725115342; Tue, 28 May 2013 00:11:55 -0700 (PDT) In-Reply-To: References: <20130522154233.fe5263cb231c375fc60c7c9b@gmx.net> <20130523174145.22a6c46f586b0a1f656d2412@gmx.net> <20130526194310.9cdb1be80b42c7fdf0ba502f@gmx.net> <20130527173123.8ad4fc4af177161c8478be1a@gmx.net> <51A3943E.8070107@gmail.com> Date: Tue, 28 May 2013 17:11:55 +1000 Subject: Re: Future standard GUI library 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369725123 news.xs4all.nl 15960 [2001:888:2000:d::a6]:53583 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46260 On Tue, May 28, 2013 at 9:10 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> I'll use XML when I have to, but if I'm inventing my own protocol, >> nope. There are just too many quirks with it. How do you represent an >> empty string named Foo? >> >> >> >> or equivalently >> >> >> >> How do you represent an empty list named Foo? The same way. How do you >> represent an empty dict/mapping named Foo? Lemme look up my >> documentation... ah, the same way. Does this seem right to >> you? > > XML doesn't represent strings, or lists, or dicts. It represents trees > of nodes with labels. If you wish to invent some richer semantic > meaning to impose on those nodes, that's up to you. Sure it doesn't, but it's very often used that way. So I guess what I'm really saying is that XML is wrong for 90% of the places it's used. ChrisA