Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'postgresql': 0.07; 'suppose': 0.07; 'subject:into': 0.09; 'subject:string': 0.09; 'subject:How': 0.10; 'python': 0.11; '5:30': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'higher-level': 0.16; 'list),': 0.16; 'personally,': 0.16; 'repr': 0.16; 'subject:already': 0.16; 'wrote:': 0.18; 'separate': 0.22; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'lists': 0.32; 'table': 0.34; 'received:google.com': 0.35; 'list': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'structure': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'even': 0.60; 'most': 0.60; 'back': 0.62; 'such': 0.63; 'field': 0.63; 'foreign': 0.74; 'subject:add': 0.91; '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=+broR0FOJZUazxVo5vUDBbqczwg6pVIwTAbrDuoPHQg=; b=ZGVXQxl8Jp9IjrVQKiCmwMjSEi7PWuaIqg2/qPrgHGsXYElnr1XADwUgGSM5mbQRul WyRte4u297WiSq/++mUsj+/Whv4Nv1ERdsfOanFO/VtfaxSruWV+sF0JNrTSGWa+1LnF I4TJJt4ZNX1/dJh5v3wxNdrlR7PzdEKcQG3JhgSzUBY1qx74Ds/mPPTkjaV7VdfQwAZn WUH7i29ofEn580w5kK5tK452aAIxJnLqtzbzxxiuUhfhXPIGOaiC+whSwlaRkOquoUAr BJIgDuzzJxHPsUQv0Uxc4Y7mfqEz4/NIW2vLWFIaVSIapuyE7fnSz2oQaznEMwyVOZan a7YA== MIME-Version: 1.0 X-Received: by 10.66.188.203 with SMTP id gc11mr9594959pac.63.1383429036930; Sat, 02 Nov 2013 14:50:36 -0700 (PDT) In-Reply-To: References: Date: Sun, 3 Nov 2013 08:50:36 +1100 Subject: Re: How to add a current string into an already existing list 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383429046 news.xs4all.nl 15988 [2001:888:2000:d::a6]:55427 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58350 On Sun, Nov 3, 2013 at 5:30 AM, Jussi Piitulainen wrote: > Suppose a database allowed structured values like lists of strings, > lists of numbers, or even lists of such lists and more. Then it would > actually be a Python issue how best to support that database. PostgreSQL supports some higher-level structures like arrays. Personally, though, I think the most general representation of a Python list in a database is either a varchar field with some form of structure (eg the repr of a list), or a separate table with a foreign key back to this one. ChrisA