Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '"this': 0.03; 'wiki': 0.03; 'argument': 0.05; 'memory.': 0.07; 'sql,': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; "wouldn't": 0.14; 'dict': 0.16; 'fits': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'metadata.': 0.16; 'tuple': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '(not': 0.18; 'bit': 0.19; 'seems': 0.21; 'outlook': 0.22; 'hack': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'parse': 0.24; 'text,': 0.24; 'text.': 0.24; 'cc:2**0': 0.24; '(for': 0.26; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'markup': 0.31; 'stuff': 0.32; 'text': 0.33; 'guess': 0.33; "can't": 0.35; 'display': 0.35; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'format.': 0.36; 'html,': 0.36; 'doing': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'two': 0.37; 'generic': 0.38; 'structure': 0.39; 'either': 0.39; 'entire': 0.61; "you're": 0.61; 'here:': 0.62; 'field': 0.63; 'more': 0.64; 'different': 0.65; 'world': 0.66; 'between': 0.67; 'email,': 0.69; 'containing': 0.69; 'fact,': 0.69; '*really*': 0.84; 'fifty': 0.84; 'subject:Managing': 0.84; 'favour': 0.91; 'rusi': 0.91; 'to:none': 0.92; 'luck': 0.93; 'webmail': 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:cc :content-type; bh=7HSJCBhYhQ2L/+n6ObboRQWMncnr2uOt5nAwrDb0cP4=; b=oWLuUlKlpEGB+ZOTuFwERt5+zAGMRvKNXCvwpeiwc9BveqXFnpen6UBl+OfZSmBrXA H9mFEzhdYY4n70MN7helukqLQ5nDK1PWiXBGy4ld817DkqAEA5sIGOZor6pYigHelXkg IgnWSJdCNftwAZIB1FeGPifQhdKl7fEI+kW+QZh2nyHOolTrF6P5MXfTksJGkI7m9u2u 3gxa/wSjXKdXCdVytABaz9rERzmuLGD9GRkC9BUvbYa/Uz8QJBU5fBYJUNFMU50jipfx TfMBTi17AtmToCa9utgR2fxmmp5ij4T7hDtzpfgNNvkYa8O3in3zy3sIYmwNpJ4vVCer nkeQ== MIME-Version: 1.0 X-Received: by 10.68.196.193 with SMTP id io1mr4296653pbc.46.1386337700184; Fri, 06 Dec 2013 05:48:20 -0800 (PST) In-Reply-To: <10982d24-d47c-4a99-a93a-360fbe6b52ed@googlegroups.com> References: <5f370a06-8d2c-4d7d-bc22-b9a489c15c59@googlegroups.com> <132658ff-d06a-4136-ade6-353189da5769@googlegroups.com> <51007240-6bc9-4f0b-9937-4883bcc0ceb6@googlegroups.com> <10982d24-d47c-4a99-a93a-360fbe6b52ed@googlegroups.com> Date: Sat, 7 Dec 2013 00:48:19 +1100 Subject: Re: Managing Google Groups headaches From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386337709 news.xs4all.nl 2954 [2001:888:2000:d::a6]:55361 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61145 On Sat, Dec 7, 2013 at 12:32 AM, rusi wrote: > I guess we are using 'structured' in different ways. All I am saying > is that mediawiki which seems to present as html, actually stores its > stuff as SQL -- nothing more or less structured than the schemas here: > http://www.mediawiki.org/wiki/Manual:MediaWiki_architecture#Database_and_text_storage Yeah, but the structure is all about the metadata. Ultimately, there's one single text field containing the entire content as you would see it in the page editor: wiki markup in straight text. MediaWiki uses an SQL database to store that lump of text, but ultimately the relationship is between wikitext and HTML, no SQL involvement. Wiki markup is reasonable for text structuring. (Not for generic data structuring, but it's decent for text.) Same with reStructuredText, used for PEPs. An SQL database is a good way to store mappings of "this key, this tuple of data" and retrieve them conveniently, including (and this is the bit that's more complicated in a straight Python dictionary) using any value out of the tuple as the key, and (and this is where a dict *really* can't hack it) storing/retrieving more data than fits in memory. The two are orthogonal. Your point is better supported by wikitext than by SQL, here, except that there aren't fifty other systems that parse and display wikitext. In fact, what you're suggesting is a good argument for deprecating HTML email in favour of RST email, and using docutils to render the result either as HTML (for webmail users) or as some other format. And I wouldn't be against that :) But good luck convincing the world that Microsoft Outlook is doing the wrong thing. ChrisA