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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'column': 0.07; 'subject:code': 0.07; 'iterate': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tismer': 0.09; 'subject:Help': 0.11; 'python': 0.11; 'stored': 0.12; 'rdbms': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simpson': 0.16; 'subject:PLEASE': 0.16; 'tuples,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'programming': 0.22; 'header:User- Agent:1': 0.23; 'bytes': 0.24; 'second': 0.26; 'values': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'pickle': 0.31; 'allows': 0.31; 'subject:with': 0.35; "can't": 0.35; 'convert': 0.35; 'objects': 0.35; 'but': 0.35; 'christian': 0.38; 'to:addr:python-list': 0.38; 'expect': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'world.': 0.61; 'course': 0.61; "you're": 0.61; 'back': 0.62; 'such': 0.63; 'great': 0.65; 'dont': 0.67; 'forth': 0.81; 'subject:this': 0.83; 'blob': 0.84; 'received:89': 0.85 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Help me with this code PLEASE Date: Tue, 05 Nov 2013 23:36:24 +0000 References: <20131105223107.GA99421@cskk.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-162-119.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <20131105223107.GA99421@cskk.homeip.net> 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383694607 news.xs4all.nl 15927 [2001:888:2000:d::a6]:51901 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58537 On 05/11/2013 22:31, Cameron Simpson wrote: > On 05Nov2013 20:09, Nikos wrote: >> O even better an rdbms than allows complex data such as tuples, >> lists, dicts to be saved into the db as they are so i dont have to >> cobvet back and forth each time. > > If you're just using the db for storage or adhoc and arbitrary > python objects (and not querying the stored values via SQL - eg > WHERE), then: make a column of type BLOB, convert Python values to > bytes using pickle, store. And of course the reverse. > > It is not a great use of an RDB, but it seems to adhere to what you ask. > How do expect the OP to understand a BLOB or pickle or chutney when he doesn't understand why he can't iterate around a Nonetype object? -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence